From e495fe2f7ad232d69484b6f9de7ed8f6112f577e Mon Sep 17 00:00:00 2001 From: Tom Coleman Date: Fri, 2 Dec 2022 14:16:23 +1100 Subject: [PATCH 1/2] Reinstante (deprecated) `StorybookViteConfig` --- code/lib/builder-vite/src/index.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/code/lib/builder-vite/src/index.ts b/code/lib/builder-vite/src/index.ts index b397f3b7438b..421354d3d8cd 100644 --- a/code/lib/builder-vite/src/index.ts +++ b/code/lib/builder-vite/src/index.ts @@ -32,6 +32,15 @@ export type StorybookConfig = StorybookBaseConfig & { viteFinal?: ViteFinal; }; +/** + * @deprecated + * + * Use `import { StorybookConfig } from '@storybook/build-vite';` + * + * Or better yet, import from your framework. + */ +export type StorybookViteConfig = StorybookConfig; + function iframeMiddleware(options: ExtendedOptions, server: ViteDevServer): RequestHandler { return async (req, res, next) => { if (!req.url.match(/^\/iframe\.html($|\?)/)) { From 167833f26a9fbaaab81a0be46e51787a19b325a9 Mon Sep 17 00:00:00 2001 From: Tom Coleman Date: Sat, 3 Dec 2022 10:57:10 +1100 Subject: [PATCH 2/2] Update code/lib/builder-vite/src/index.ts Co-authored-by: Ian VanSchooten --- code/lib/builder-vite/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/lib/builder-vite/src/index.ts b/code/lib/builder-vite/src/index.ts index 421354d3d8cd..e55dd1d36697 100644 --- a/code/lib/builder-vite/src/index.ts +++ b/code/lib/builder-vite/src/index.ts @@ -35,7 +35,7 @@ export type StorybookConfig = StorybookBaseConfig & { /** * @deprecated * - * Use `import { StorybookConfig } from '@storybook/build-vite';` + * Use `import { StorybookConfig } from '@storybook/builder-vite';` * * Or better yet, import from your framework. */