Skip to content

Commit

Permalink
Merge pull request #20232 from storybookjs/fix/20138
Browse files Browse the repository at this point in the history
Core: Fix config.base relative paths
  • Loading branch information
ndelangen authored Dec 14, 2022
2 parents bda9dfa + 989f6af commit ea6054f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/lib/builder-vite/input/iframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<!-- [BODY HTML SNIPPET HERE] -->
<div id="storybook-root"></div>
<div id="storybook-docs"></div>
<script type="module" src="/sb-preview/runtime.mjs"></script>
<script type="module" src="./sb-preview/runtime.mjs"></script>
<script type="module" src="/virtual:/@storybook/builder-vite/vite-app.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion code/lib/builder-vite/src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export async function build(options: ExtendedOptions) {
sourcemap: true,
rollupOptions: {
// Do not try to bundle the storybook runtime, it is copied into the output dir after the build.
external: ['/sb-preview/runtime.mjs'],
external: ['./sb-preview/runtime.mjs'],
},
},
}).build;
Expand Down

0 comments on commit ea6054f

Please sign in to comment.