storybook/code/lib/builder-webpack5
Norbert de Langen f798003dbc
Revert "upgrade to use node 16 everywhere"
This reverts commit 1fad1723dfebdbf481448b8219a8c30c5074960f.
2022-10-11 18:48:56 +02:00
..
2022-09-13 15:44:50 +10: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',
  },
};