storybook/code/lib/builder-webpack5
Michael Shilman 95469899a2
Merge pull request #19103 from dartess/remove-stable
Remove deprecated `stable` dependency
2022-09-06 00:36:23 +08:00
..
2022-08-31 10:59:59 -04: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',
  },
};