-
Notifications
You must be signed in to change notification settings - Fork 4k
/
main.js
37 lines (36 loc) · 912 Bytes
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
const stories = [
process.env.NODE_ENV !== 'test' && './stories/**/*.@(js|tsx|mdx)',
'../packages/block-editor/src/**/stories/*.@(js|tsx|mdx)',
'../packages/components/src/**/stories/*.@(js|tsx|mdx)',
'../packages/icons/src/**/stories/*.@(js|tsx|mdx)',
].filter( Boolean );
module.exports = {
core: {
builder: 'webpack5',
},
stories,
addons: [
{
name: '@storybook/addon-docs',
options: { configureJSX: true },
},
'@storybook/addon-controls',
'@storybook/addon-viewport',
'@storybook/addon-a11y',
'@storybook/addon-toolbars',
'@storybook/addon-actions',
'storybook-source-link',
],
framework: '@storybook/react',
features: {
babelModeV7: true,
emotionAlias: false,
storyStoreV7: true,
},
env: ( config ) => ( {
...config,
// Inject the `ALLOW_EXPERIMENT_REREGISTRATION` global, used by
// @wordpress/experiments.
ALLOW_EXPERIMENT_REREGISTRATION: true,
} ),
};