```js // .storybook/main.js module.exports = { stories: ['../src/**/*.stories.@(js|mdx)'], addons: ['@storybook/addon-essentials'], framework: '@storybook/react', core: { builder: '@storybook/builder-webpack5', }, 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; }, }; ```