Skip to content

Commit

Permalink
build(Storybook): Upgrade to WebPack 5
Browse files Browse the repository at this point in the history
  • Loading branch information
m7kvqbe1 committed Jun 7, 2021
1 parent 13d5a94 commit 5f9a46d
Show file tree
Hide file tree
Showing 3 changed files with 594 additions and 49 deletions.
14 changes: 14 additions & 0 deletions packages/react-component-library/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,18 @@ module.exports = {
'@storybook/addon-a11y',
'@storybook/addon-actions',
],
core: {
builder: 'webpack5',
},
webpackFinal: (config) => {
config.resolve = {
...config.resolve,
alias: {
...config.resolve.alias,
stream: require.resolve('stream-browserify'),
},
}

return config
},
}
3 changes: 3 additions & 0 deletions packages/react-component-library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@
"@storybook/addon-storyshots": "^6.2.8",
"@storybook/addon-storyshots-puppeteer": "^6.2.8",
"@storybook/addons": "^6.2.8",
"@storybook/builder-webpack5": "^6.3.0-beta.16",
"@storybook/manager-webpack5": "^6.3.0-beta.16",
"@storybook/preset-scss": "^1.0.2",
"@storybook/react": "^6.2.8",
"@svgr/webpack": "^5.4.0",
Expand Down Expand Up @@ -143,6 +145,7 @@
"sass": "^1.25.0",
"sass-loader": "^10.0.4",
"source-map-loader": "^1.1.2",
"stream-browserify": "^3.0.0",
"style-loader": "^2.0.0",
"styled-components": "^5.2.0",
"timezone-mock": "^1.1.3",
Expand Down
Loading

0 comments on commit 5f9a46d

Please sign in to comment.