From c114bb91c3c28632d19ee4701b8f3d5c728d64c7 Mon Sep 17 00:00:00 2001 From: jonniebigodes Date: Wed, 12 Apr 2023 17:06:19 +0100 Subject: [PATCH 1/2] Minor polish to framework references --- MIGRATION.md | 5 ++++- .../common/storybook-vite-builder-ts-configure.ts.mdx | 7 +++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/MIGRATION.md b/MIGRATION.md index e65b163f7b52..5d8b63b44224 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -669,7 +669,10 @@ For example: ```ts import type { StorybookConfig } from '@storybook/react-vite'; const config: StorybookConfig = { - framework: '@storybook/react-vite', + framework: { + name: '@storybook/react-vite', + options: {} + }, // ... your configuration }; export default config; diff --git a/docs/snippets/common/storybook-vite-builder-ts-configure.ts.mdx b/docs/snippets/common/storybook-vite-builder-ts-configure.ts.mdx index f2edd8122e1a..67a1669b68da 100644 --- a/docs/snippets/common/storybook-vite-builder-ts-configure.ts.mdx +++ b/docs/snippets/common/storybook-vite-builder-ts-configure.ts.mdx @@ -1,12 +1,15 @@ ```ts // .storybook/main.ts -import type { StorybookConfig } from '@storybook/react-vite'; // your framework +import type { StorybookConfig } from '@storybook/react-vite'; const config: StorybookConfig = { stories: ['../src/**/*.mdx', '../stories/**/*.stories.@(js|jsx|ts|tsx)'], addons: ['@storybook/addon-links', '@storybook/addon-essentials'], - framework: '@storybook/react-vite', + framework: { + name: '@storybook/react-vite', + options: {} + }, async viteFinal(config, options) { // Add your configuration here return config; From 4a4931d692198e5ebe17400ff328be484eeda6a7 Mon Sep 17 00:00:00 2001 From: jonniebigodes Date: Wed, 12 Apr 2023 17:12:44 +0100 Subject: [PATCH 2/2] Ran pretty docs --- docs/snippets/common/storybook-vite-builder-ts-configure.ts.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/snippets/common/storybook-vite-builder-ts-configure.ts.mdx b/docs/snippets/common/storybook-vite-builder-ts-configure.ts.mdx index 67a1669b68da..38fc82b0bd9b 100644 --- a/docs/snippets/common/storybook-vite-builder-ts-configure.ts.mdx +++ b/docs/snippets/common/storybook-vite-builder-ts-configure.ts.mdx @@ -8,7 +8,7 @@ const config: StorybookConfig = { addons: ['@storybook/addon-links', '@storybook/addon-essentials'], framework: { name: '@storybook/react-vite', - options: {} + options: {}, }, async viteFinal(config, options) { // Add your configuration here