storybook/docs/snippets/common/storybook-main-enable-mdx2.js.mdx
2022-05-17 22:30:21 +01:00

11 lines
283 B
Plaintext

```js
// .storybook/main.js|ts
module.exports = {
stories: ['../stories/**/*.stories.mdx', '../stories/**/*.stories.@(js|jsx|ts|tsx)'],
addons: ['@storybook/addon-links', '@storybook/addon-essentials'],
features: {
previewMdx2: true, // 👈 MDX 2 enabled here
},
};
```