From ecb679321025bd7b6066ec56d18bf0e6e5289555 Mon Sep 17 00:00:00 2001 From: Yann Braga Date: Wed, 4 Dec 2024 10:54:50 +0100 Subject: [PATCH] Vite: Fix preview runtime import --- code/builders/builder-vite/src/codegen-modern-iframe-script.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/builders/builder-vite/src/codegen-modern-iframe-script.ts b/code/builders/builder-vite/src/codegen-modern-iframe-script.ts index ca4578b972cc..dffb3144d67a 100644 --- a/code/builders/builder-vite/src/codegen-modern-iframe-script.ts +++ b/code/builders/builder-vite/src/codegen-modern-iframe-script.ts @@ -67,7 +67,7 @@ export async function generateModernIframeScriptCode(options: Options, projectRo * @todo Inline variable and remove `noinspection` */ const code = ` - import { setup } from '@storybook/core/preview/runtime'; + import { setup } from 'storybook/internal/preview/runtime'; import '${SB_VIRTUAL_FILES.VIRTUAL_ADDON_SETUP_FILE}'; setup();