2021-09-18 13:11:54 +08:00

32 lines
711 B
TypeScript

import type { StorybookConfig } from '@storybook/react/types';
const config: StorybookConfig = {
stories: [{ directory: './src', titlePrefix: 'Demo' }],
logLevel: 'debug',
addons: [
'@storybook/react',
'@storybook/addon-essentials',
'@storybook/addon-storysource',
'@storybook/addon-storyshots',
],
typescript: {
check: true,
checkOptions: {},
reactDocgenTypescriptOptions: {
propFilter: (prop) => ['label', 'disabled'].includes(prop.name),
},
},
core: {
builder: 'webpack4',
},
features: {
postcss: false,
modernInlineRender: true,
storyStoreV7: true,
buildStoriesJson: true,
babelModeV7: true,
},
};
module.exports = config;