fbredius/storybook

View on GitHub
docs/snippets/common/storybook-main-default-setup.js.mdx

Summary

Maintainability
Test Coverage
```js
// .storybook/main.js

module.exports = {
  addons: ['@storybook/addon-essentials'],
  babel: async (options) => ({
    // Update your babel configuration here
    ...options,
  }),
  framework: '@storybook/react',
  stories: ['../src/**/*.stories.@(js|mdx)'],
  webpackFinal: async (config, { configType }) => {
    // Make whatever fine-grained changes you need
    // Return the altered config
    return config;
  },
};
```