storybook/lib/builder-webpack5
Tom Coleman 7d45c074a4 Add a "back-compat" API for __STORYBOOK_CLIENT_API
(Although it isn't backwards compatible, as it requires you call `cacheAllCSFFiles()` first)
2021-09-07 16:07:04 +10:00
..
2021-02-04 13:31:31 +01: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',
  },
};