mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +08:00
Unfortunately, all the Angular packages use a fix version for webpack (right now 5.70,0). Webpack 5 is highly allergic to version mixing and throws an error that does not seem to be related to a dependency issue. In this commit I set all versions in this repo to 5.70.0 just to demonstrate that this is working. I could not figure out another way to solve this. I also tried the yarn "nohoist" feature but could not get it working at all. This is most likely only an issue in this repo and user-land should not be affected by this conflict as long as we offer a range that suits the Angular fix version of webpack.
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',
},
};