storybook/lib/builder-webpack5
Tim van der Horst 5d5bf30eb7
Replaced process.env override in DefinePlugin config to individual key definitions
Included an empty fallback for `process.env.XSTORYBOOK_EXAMPLE_APP` for the variable used in `lib/ui/src/index.tsx`
2021-08-27 17:00:52 +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',
  },
};