Skip to content

Commit 15413f3

Browse files
committed
upgrade dependencies: react-scripts v5.0.0, monkey-react-scripts v5.0.0-0
1 parent 997fd52 commit 15413f3

File tree

4 files changed

+5230
-6788
lines changed

4 files changed

+5230
-6788
lines changed

package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6-
"@babel/plugin-proposal-decorators": "^7.12.1",
7-
"monkey-react-scripts": "^0.3.1",
8-
"node-sass": "^4.14.1",
9-
"react": "^17.0.0",
10-
"react-dom": "^17.0.0",
11-
"react-scripts": "4.0.0",
12-
"rtlcss": "^2.6.1",
13-
"webpack-visualizer-plugin": "^0.1.11"
6+
"@babel/plugin-proposal-decorators": "^7.17.2",
7+
"monkey-react-scripts": "5.0.0-0",
8+
"node-sass": "^7.0.1",
9+
"react": "^17.0.2",
10+
"react-dom": "^17.0.2",
11+
"react-scripts": "5.0.0",
12+
"rtlcss": "^3.5.0",
13+
"webpack-visualizer-plugin2": "^1.0.0"
1414
},
1515
"scripts": {
1616
"start": "monkey-react-scripts start",

webpack-helpers/cssPatch.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,8 @@ module.exports.cssPatch = function cssPatch(webpackConfig, isDevelopment) {
1313
cssRules.forEach((cssRule) => {
1414
const cssLoaders = cssRule.use
1515
cssLoaders.forEach((loader) => {
16-
if (loader.options && loader.options.ident === 'postcss') {
17-
const postCssLoader = loader
18-
const postCssFunction = postCssLoader.options.plugins
19-
postCssLoader.options.plugins = () => {
20-
return [...postCssFunction(), require('rtlcss')]
21-
}
16+
if (loader.options && loader.options.postcssOptions && loader.options.postcssOptions.ident === 'postcss') {
17+
loader.options.postcssOptions.plugins.push('rtlcss')
2218
}
2319
});
2420
});

webpack-helpers/pluginsPatch.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Visualizer = require('webpack-visualizer-plugin');
1+
const Visualizer = require('webpack-visualizer-plugin2');
22

33
module.exports.pluginsPatch = function pluginsPatch(webpackConfig, isDevelopment) {
44
if (!isDevelopment) {

0 commit comments

Comments
 (0)