From 989f6afe8ae0faa1091454a48f99365873497983 Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Tue, 13 Dec 2022 18:14:46 +0100 Subject: [PATCH] change to begin url with ./ --- code/lib/builder-vite/input/iframe.html | 2 +- code/lib/builder-vite/src/build.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/lib/builder-vite/input/iframe.html b/code/lib/builder-vite/input/iframe.html index 5e522dda6c44..874cf855e9a7 100644 --- a/code/lib/builder-vite/input/iframe.html +++ b/code/lib/builder-vite/input/iframe.html @@ -25,7 +25,7 @@
- + diff --git a/code/lib/builder-vite/src/build.ts b/code/lib/builder-vite/src/build.ts index a9ba1a37b01c..dbb6feefb011 100644 --- a/code/lib/builder-vite/src/build.ts +++ b/code/lib/builder-vite/src/build.ts @@ -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;