Files
d6e2c388d5 chore!: React 19 upgrade (#614)
Signed-off-by: Jonathan Winters <[email protected]>
Co-authored-by: Claude Sonnet 4.6 <[email protected]>
2026-05-19 14:20:24 -04:00

26 lines
1.0 KiB
JavaScript

const path = require('path');
module.exports = {
stories: ['../stories/*.stories.tsx'],
addons: ['@storybook/addon-essentials', '@storybook/addon-webpack5-compiler-swc'],
framework: {
name: '@storybook/react-webpack5',
options: {},
},
typescript: {
check: false, // typecheck separately
reactDocgen: false, // substantially improves performance: https://github.com/storybookjs/storybook/issues/22164#issuecomment-1603627308
},
webpackFinal: async (config, {configType}) => {
config.devtool = false; // perf per: https://github.com/storybookjs/storybook/issues/19736#issuecomment-1478103817
config.module.rules.push({
test: /\.scss$/,
exclude: /node_modules/,
include: path.resolve(__dirname, '../'),
sideEffects: true, // get side-effect styles to load per: https://github.com/storybookjs/storybook/issues/4690#issuecomment-435909433
use: ['style-loader', 'raw-loader', 'sass-loader']
});
return config;
},
};