Skip to content

Commit

Permalink
upgrade dependencies: react-scripts v5.0.0, monkey-react-scripts v5.0…
Browse files Browse the repository at this point in the history
….0-0
  • Loading branch information
smmoosavi committed Feb 26, 2022
1 parent 997fd52 commit 15413f3
Show file tree
Hide file tree
Showing 4 changed files with 5,230 additions and 6,788 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@babel/plugin-proposal-decorators": "^7.12.1",
"monkey-react-scripts": "^0.3.1",
"node-sass": "^4.14.1",
"react": "^17.0.0",
"react-dom": "^17.0.0",
"react-scripts": "4.0.0",
"rtlcss": "^2.6.1",
"webpack-visualizer-plugin": "^0.1.11"
"@babel/plugin-proposal-decorators": "^7.17.2",
"monkey-react-scripts": "5.0.0-0",
"node-sass": "^7.0.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-scripts": "5.0.0",
"rtlcss": "^3.5.0",
"webpack-visualizer-plugin2": "^1.0.0"
},
"scripts": {
"start": "monkey-react-scripts start",
Expand Down
8 changes: 2 additions & 6 deletions webpack-helpers/cssPatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,8 @@ module.exports.cssPatch = function cssPatch(webpackConfig, isDevelopment) {
cssRules.forEach((cssRule) => {
const cssLoaders = cssRule.use
cssLoaders.forEach((loader) => {
if (loader.options && loader.options.ident === 'postcss') {
const postCssLoader = loader
const postCssFunction = postCssLoader.options.plugins
postCssLoader.options.plugins = () => {
return [...postCssFunction(), require('rtlcss')]
}
if (loader.options && loader.options.postcssOptions && loader.options.postcssOptions.ident === 'postcss') {
loader.options.postcssOptions.plugins.push('rtlcss')
}
});
});
Expand Down
2 changes: 1 addition & 1 deletion webpack-helpers/pluginsPatch.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const Visualizer = require('webpack-visualizer-plugin');
const Visualizer = require('webpack-visualizer-plugin2');

module.exports.pluginsPatch = function pluginsPatch(webpackConfig, isDevelopment) {
if (!isDevelopment) {
Expand Down
Loading

0 comments on commit 15413f3

Please sign in to comment.