```js // .storybook/main.js export default { stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'], staticDirs: ['../public'], addons: [ '@storybook/addon-links', '@storybook/addon-essentials', '@storybook/preset-create-react-app', '@storybook/addon-interactions', ], docs: { autodocs: 'tag', }, framework: { name: '@storybook/react-webpack5', options: {}, }, babel: async (options) => ({ // Update your babel configuration here ...options, }), webpackFinal: async (config, { configType }) => { // Make whatever fine-grained changes you need // Return the altered config return config; }, }; ```