mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 16:11:33 +08:00
Merge pull request #20286 from storybookjs/norbert/rebust-manager-entry-loading
Fix: ensure manager entries load even if preceding ones failed
This commit is contained in:
commit
a18a8f60db
@ -77,6 +77,14 @@ export const getConfig: ManagerBuilder['getConfig'] = async (options) => {
|
||||
globalExternals(definitions),
|
||||
pnpPlugin(),
|
||||
],
|
||||
|
||||
banner: {
|
||||
js: 'try{',
|
||||
},
|
||||
footer: {
|
||||
js: '}catch(e){ console.log("ONE OF YOUR MANAGER-ENTRIES FAILED: " + import.meta.url) }',
|
||||
},
|
||||
|
||||
define: {
|
||||
'process.env.NODE_ENV': "'production'",
|
||||
'process.env': '{}',
|
||||
|
@ -8,7 +8,6 @@
|
||||
<link rel="icon" type="image/svg+xml" href="./favicon.svg">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
<link href="./sb-preview/runtime.mjs" rel="preload" as="script">
|
||||
|
||||
<% if (typeof head !== 'undefined') { %> <%- head %> <% } %>
|
||||
|
||||
@ -39,8 +38,10 @@
|
||||
import './sb-manager/runtime.mjs';
|
||||
|
||||
<% files.js.forEach(file => { %>
|
||||
import './<%= file %>';
|
||||
<% }); %>
|
||||
import '<%= file %>';
|
||||
<% }); %>
|
||||
</script>
|
||||
|
||||
<link href="./sb-preview/runtime.mjs" rel="preload" as="script">
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user