Back to Storybook

Main Config Features Babel Remove Bugfixes

docs/_snippets/main-config-features-babel-remove-bugfixes.md

10.5.0913 B
Original Source
js
import path from 'path';

export default {
  // Replace your-framework with the framework you are using, e.g. react-webpack5, nextjs, angular, etc.
  framework: '@storybook/your-framework',
  stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
  features: {
    babelRemoveBugfixes: true,
  },
};
ts
import path from 'path';
// Replace your-framework with the framework you are using, e.g. react-webpack5, nextjs, angular, etc.
import type { StorybookConfig } from '@storybook/your-framework';

const config: StorybookConfig = {
  framework: '@storybook/your-framework',
  stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
  features: {
    babelRemoveBugfixes: true,
  },
};

export default config;