mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 07:21:16 +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),
|
globalExternals(definitions),
|
||||||
pnpPlugin(),
|
pnpPlugin(),
|
||||||
],
|
],
|
||||||
|
|
||||||
|
banner: {
|
||||||
|
js: 'try{',
|
||||||
|
},
|
||||||
|
footer: {
|
||||||
|
js: '}catch(e){ console.log("ONE OF YOUR MANAGER-ENTRIES FAILED: " + import.meta.url) }',
|
||||||
|
},
|
||||||
|
|
||||||
define: {
|
define: {
|
||||||
'process.env.NODE_ENV': "'production'",
|
'process.env.NODE_ENV': "'production'",
|
||||||
'process.env': '{}',
|
'process.env': '{}',
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
<link rel="icon" type="image/svg+xml" href="./favicon.svg">
|
<link rel="icon" type="image/svg+xml" href="./favicon.svg">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<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 %> <% } %>
|
<% if (typeof head !== 'undefined') { %> <%- head %> <% } %>
|
||||||
|
|
||||||
@ -39,8 +38,10 @@
|
|||||||
import './sb-manager/runtime.mjs';
|
import './sb-manager/runtime.mjs';
|
||||||
|
|
||||||
<% files.js.forEach(file => { %>
|
<% files.js.forEach(file => { %>
|
||||||
import './<%= file %>';
|
import '<%= file %>';
|
||||||
<% }); %>
|
<% }); %>
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<link href="./sb-preview/runtime.mjs" rel="preload" as="script">
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user