storybook/code/lib/builder-webpack5
Norbert de Langen 113e0582d2
Merge branch 'next' into future/move-code-into-directory
# Conflicts:
#	.vscode/launch.json
#	CONTRIBUTING.old.md
#	code/lib/cli/tsconfig.json
#	scripts/tsconfig.json
2022-07-26 08:33:57 +02:00
..
2022-07-21 11:24:07 +02:00
2022-07-21 11:24:07 +02:00
2022-07-21 11:24:07 +02:00
2022-07-21 11:24:07 +02:00

Builder-Webpack5

Builder implemented with webpack5 and webpack5-compatible loaders/plugins/config, used by @storybook/core-server to build the preview iframe.

webpack4 is the default. To configure your Storybook to run webpack5, install @storybook/manager-webpack5 and @storybook/builder-webpack5 as dev dependencies then update your .storybook/main.js configuration.

module.exports = {
  core: {
    builder: 'webpack5',
  },
};