Skip to content

Commit

Permalink
Update Storybook to use Webpack 5
Browse files Browse the repository at this point in the history
  • Loading branch information
julianguyen committed Oct 9, 2022
1 parent a8616ff commit d40e832
Show file tree
Hide file tree
Showing 4 changed files with 1,180 additions and 987 deletions.
3 changes: 3 additions & 0 deletions client/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ const path = require('path');
const custom = require('../webpack.config');

module.exports = {
core: {
builder: 'webpack5',
},
stories: [
'../app/stories/Index.stories.jsx',
'../app/stories/**/*.stories.@(jsx|mdx)',
Expand Down
10 changes: 6 additions & 4 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,12 @@
"@babel/preset-env": "^7.5.5",
"@babel/preset-flow": "^7.14.5",
"@babel/preset-react": "^7.14.5",
"@storybook/addon-essentials": "^6.4.21",
"@storybook/addon-links": "^6.4.21",
"@storybook/addons": "^6.4.21",
"@storybook/react": "^6.4.21",
"@storybook/addon-essentials": "^6.5.12",
"@storybook/addon-links": "^6.5.12",
"@storybook/addons": "^6.5.12",
"@storybook/builder-webpack5": "^6.5.12",
"@storybook/manager-webpack5": "^6.5.12",
"@storybook/react": "^6.5.12",
"@testing-library/jest-dom": "^5.10.0",
"@testing-library/react": "^11.0.4",
"@testing-library/user-event": "^12.1.7",
Expand Down
2 changes: 1 addition & 1 deletion client/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const ExtractCssChunks = require('extract-css-chunks-webpack-plugin');
const { WebpackManifestPlugin } = require('webpack-manifest-plugin');
const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const webpackConfigLoader = require('react-on-rails/webpackConfigLoader');
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin")
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin');
const webpack = require('webpack');

Expand Down
Loading

0 comments on commit d40e832

Please sign in to comment.