storybook/code/lib/builder-webpack5
Tom Coleman 52cd4f41f3
Merge pull request #19152 from storybookjs/tom/sb-740-remove-previewentries-from-vite-builder
Presets: Replace `config` with `previewAnnotations`, remove `previewEntries`
2022-09-13 16:39:19 +10: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',
  },
};