mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 21:31:48 +08:00
33 lines
790 B
JavaScript
33 lines
790 B
JavaScript
const config = {
|
|
stories: [
|
|
'../Introduction.mdx',
|
|
{
|
|
directory: '../components',
|
|
titlePrefix: 'Demo',
|
|
files: '**/!(Template).(stories.tsx|mdx)',
|
|
},
|
|
],
|
|
logLevel: 'debug',
|
|
addons: ['@storybook/addon-essentials'],
|
|
typescript: {
|
|
check: true,
|
|
checkOptions: {},
|
|
reactDocgenTypescriptOptions: {
|
|
propFilter: (prop) => ['label', 'disabled'].includes(prop.name),
|
|
},
|
|
},
|
|
core: {
|
|
channelOptions: { allowFunction: false, maxDepth: 10 },
|
|
},
|
|
features: {
|
|
postcss: false,
|
|
storyStoreV7: !global.navigator?.userAgent?.match?.('jsdom'),
|
|
buildStoriesJson: true,
|
|
babelModeV7: true,
|
|
warnOnLegacyHierarchySeparator: false,
|
|
previewMdx2: true,
|
|
},
|
|
framework: '@storybook/react-webpack5',
|
|
};
|
|
module.exports = config;
|