Skip to content

Commit fbf56b1

Browse files
committed
chore: Upgrade to webpack 5
to handle "error:0308010C:digital envelope routines::unsupported"
1 parent afafbda commit fbf56b1

File tree

3 files changed

+1027
-1749
lines changed

3 files changed

+1027
-1749
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"c8": "^7.11.2",
6868
"commitizen": "^2.9.6",
6969
"conventional-changelog-cli": "^2.0.5",
70-
"copy-webpack-plugin": "^5.0.1",
70+
"copy-webpack-plugin": "^11.0.0",
7171
"coveralls": "^3.0.0",
7272
"cross-env": "^5.0.5",
7373
"css-loader": "^0.28.0",
@@ -90,7 +90,7 @@
9090
"jsdom-global": "^3.0.2",
9191
"lint-staged": "8.1.5",
9292
"marked": "^0.3.17",
93-
"mini-css-extract-plugin": "^0.4.0",
93+
"mini-css-extract-plugin": "^2.7.2",
9494
"postcss": "^6.0.16",
9595
"postcss-cssnext": "^3.1.0",
9696
"postcss-import": "^11.0.0",
@@ -110,10 +110,10 @@
110110
"stylelint": "^9.0.0",
111111
"stylelint-config-standard": "^18.0.0",
112112
"url-loader": "^1.0.1",
113-
"webpack": "^4.6.0",
114-
"webpack-bundle-analyzer": "^3.3.2",
115-
"webpack-cli": "^3.0.1",
116-
"webpack-serve": "^1.0.2",
113+
"webpack": "^5.75.0",
114+
"webpack-bundle-analyzer": "^4.7.0",
115+
"webpack-cli": "^5.0.1",
116+
"webpack-serve": "^4.0.0",
117117
"why-did-you-update": "^0.1.1"
118118
},
119119
"peerDependencies": {

webpack.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ module.exports = {
3636
openAnalyzer: false,
3737
generateStatsFile: true,
3838
}),
39-
new CopyPlugin([{ from: path.join(__dirname, 'types'), to: path.join(__dirname, 'dist') }]),
39+
new CopyPlugin({ patterns: [{ from: path.join(__dirname, 'types'), to: path.join(__dirname, 'dist') }] }),
4040
],
4141
module: {
4242
rules: [
4343
{
4444
test: /\.js$/,
45-
loaders: ['babel-loader'],
45+
use: ['babel-loader'],
4646
include: path.join(__dirname, 'src'),
4747
exclude: /node_modules/,
4848
},
@@ -58,6 +58,7 @@ module.exports = {
5858
localIdentName: 'react-dropdown-tree-select__[local]--[hash:base64:5]',
5959
importLoaders: 1,
6060
minimize: true,
61+
sourceMap: true,
6162
},
6263
},
6364
{ loader: 'postcss-loader' },

0 commit comments

Comments
 (0)