diff --git a/code/addons/docs/package.json b/code/addons/docs/package.json index 535e1a3302d8..5bd40d570777 100644 --- a/code/addons/docs/package.json +++ b/code/addons/docs/package.json @@ -120,7 +120,6 @@ "ts-dedent": "^2.0.0" }, "devDependencies": { - "@storybook/builder-vite": "workspace:*", "react": "^16.14.0", "react-dom": "^16.8.0", "typescript": "~4.9.3", diff --git a/code/addons/docs/src/preset.ts b/code/addons/docs/src/preset.ts index 0d2f25bdd19b..22b5834c9e9a 100644 --- a/code/addons/docs/src/preset.ts +++ b/code/addons/docs/src/preset.ts @@ -7,7 +7,6 @@ import { dedent } from 'ts-dedent'; import type { DocsOptions, Indexer, Options, StorybookConfig } from '@storybook/types'; import type { CsfPluginOptions } from '@storybook/csf-plugin'; import type { JSXOptions, CompileOptions } from '@storybook/mdx2-csf'; -import type { StorybookConfigVite } from '@storybook/builder-vite'; import { global } from '@storybook/global'; import { loadCsf } from '@storybook/csf-tools'; import { logger } from '@storybook/node-logger'; @@ -176,11 +175,11 @@ export const addons: StorybookConfig['addons'] = [ require.resolve('@storybook/react-dom-shim/dist/preset'), ]; -export const viteFinal: StorybookConfigVite['viteFinal'] = async (config, ...options) => { +export const viteFinal = async (config: any, options: Options) => { const { plugins = [] } = config; const { mdxPlugin } = await import('./plugins/mdx-plugin'); - plugins.push(mdxPlugin(...options)); + plugins.push(mdxPlugin(options)); return config; }; diff --git a/code/yarn.lock b/code/yarn.lock index ac77c33181cd..54dd68750142 100644 --- a/code/yarn.lock +++ b/code/yarn.lock @@ -5907,7 +5907,6 @@ __metadata: "@mdx-js/react": ^2.1.5 "@rollup/pluginutils": ^5.0.2 "@storybook/blocks": "workspace:*" - "@storybook/builder-vite": "workspace:*" "@storybook/client-logger": "workspace:*" "@storybook/components": "workspace:*" "@storybook/csf-plugin": "workspace:*"