storybook/docs/snippets/common/storybook-vite-builder-react-docgen.js.mdx
2022-05-29 18:56:46 +08:00

15 lines
359 B
Plaintext

```js
// .storybook/main.js
module.exports = {
stories: ['../stories/**/*.stories.mdx', '../stories/**/*.stories.@(js|jsx|ts|tsx)'],
addons: ['@storybook/addon-links', '@storybook/addon-essentials'],
core: {
builder: '@storybook/builder-vite',
},
typescript: {
reactDocgen: 'react-docgen', // 👈 react-docgen configured here.
},
};
```