docs/_snippets/react-vite-add-framework.md
export default {
// ...
// framework: '@storybook/react-webpack5', ๐ Remove this
framework: '@storybook/react-vite', // ๐ Add this
};
import type { StorybookConfig } from '@storybook/react-vite';
const config: StorybookConfig = {
// ...
// framework: '@storybook/react-webpack5', ๐ Remove this
framework: '@storybook/react-vite', // ๐ Add this
};
export default config;
// Replace your-framework with the framework you are using (e.g., react-vite, nextjs, nextjs-vite)
import { defineMain } from '@storybook/your-framework/node';
export default defineMain({
// ...
// framework: '@storybook/react-webpack5', ๐ Remove this
framework: '@storybook/react-vite', // ๐ Add this
});
// Replace your-framework with the framework you are using (e.g., react-vite, nextjs, nextjs-vite)
import { defineMain } from '@storybook/your-framework/node';
export default defineMain({
// ...
// framework: '@storybook/react-webpack5', ๐ Remove this
framework: '@storybook/react-vite', // ๐ Add this
});