32 lines
		
	
	
		
			686 B
		
	
	
	
		
			JavaScript
		
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			686 B
		
	
	
	
		
			JavaScript
		
	
	
	
import { mergeConfig } from 'vite';
 | 
						|
import svgr from 'vite-plugin-svgr';
 | 
						|
 | 
						|
/** @type { import('@storybook/react-vite').StorybookConfig } */
 | 
						|
const config = {
 | 
						|
  stories: ['../stories/**/*.mdx', '../stories/**/*.stories.tsx'],
 | 
						|
  addons: [
 | 
						|
    '@storybook/addon-links',
 | 
						|
    '@storybook/addon-essentials',
 | 
						|
    '@storybook/addon-onboarding',
 | 
						|
    '@storybook/addon-interactions',
 | 
						|
  ],
 | 
						|
  framework: {
 | 
						|
    name: '@storybook/react-vite',
 | 
						|
    options: {},
 | 
						|
  },
 | 
						|
  docs: {
 | 
						|
    autodocs: 'tag',
 | 
						|
  },
 | 
						|
  viteFinal: config =>
 | 
						|
    mergeConfig(config, {
 | 
						|
      plugins: [
 | 
						|
        svgr({
 | 
						|
          svgrOptions: {
 | 
						|
            native: false,
 | 
						|
          },
 | 
						|
        }),
 | 
						|
      ],
 | 
						|
    }),
 | 
						|
};
 | 
						|
export default config;
 |