From 861c3a3b413a72d96faaccfec5d5e51faa696bd6 Mon Sep 17 00:00:00 2001 From: Mitchell Austin Date: Fri, 15 Jul 2022 21:42:21 -0700 Subject: [PATCH] Opt in to code-split stories --- storybook/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/storybook/main.js b/storybook/main.js index 99c8c2ea84bec1..49a856be95eb6e 100644 --- a/storybook/main.js +++ b/storybook/main.js @@ -1,7 +1,7 @@ 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/components/src/**/stories/index.@(js|tsx|mdx)', '../packages/icons/src/**/stories/*.@(js|tsx|mdx)', ].filter( Boolean ); @@ -25,9 +25,11 @@ module.exports = { '@storybook/addon-toolbars', '@storybook/addon-actions', ], + framework: '@storybook/react', features: { babelModeV7: true, emotionAlias: false, + storyStoreV7: true, }, // Workaround: // https://github.com/storybookjs/storybook/issues/12270