Skip to content

Commit 349bd79

Browse files
author
Anton Mogdalov
committed
Updated react-scripts to version 5 (webpack 5), updated changelogs, package version, updated yarn.lock
1 parent 7a3b06e commit 349bd79

File tree

4 files changed

+4992
-5016
lines changed

4 files changed

+4992
-5016
lines changed

changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [1.4.0] - 12/09/2024
4+
5+
- Added react-scripts version 5 along with webpack version 5 support.
6+
- Added support for node.js version > 20
7+
- Updated dependencies.
8+
39
## [1.3.0] 04/14/2021
410

511
- Updated customization component

config-overrides.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
const webpack = require("webpack")
2+
const path = require("path")
3+
module.exports = function override(config) {
4+
const fallback = config.resolve.fallback || {}
5+
Object.assign(fallback, {
6+
crypto: require.resolve("crypto-browserify"),
7+
stream: require.resolve("stream-browserify"),
8+
assert: require.resolve("assert"),
9+
http: require.resolve("stream-http"),
10+
https: require.resolve("https-browserify"),
11+
os: require.resolve("os-browserify"),
12+
url: require.resolve("url"),
13+
vm: require.resolve("vm-browserify"),
14+
})
15+
config.resolve.fallback = fallback
16+
config.plugins = (config.plugins || []).concat([
17+
new webpack.ProvidePlugin({
18+
process: "process/browser",
19+
Buffer: ["buffer", "Buffer"],
20+
}),
21+
])
22+
const modules = config.resolve.modules
23+
config.resolve.modules = [...modules, path.resolve(__dirname, "src")]
24+
config.module.rules.push({
25+
test: /\.m?js/,
26+
resolve: {
27+
fullySpecified: false,
28+
},
29+
})
30+
return config
31+
}

package.json

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,35 @@
33
"description": "User Management Template",
44
"private": true,
55
"dependencies": {
6+
"assert": "^2.1.0",
67
"awesome-bootstrap-checkbox": "1.0.1",
78
"axios": "0.18.0",
89
"bootstrap": "4.0.0",
10+
"buffer": "^6.0.3",
911
"chroma-js": "^2.1.0",
1012
"classnames": "^2.2.6",
1113
"connected-react-router": "6.3.1",
14+
"crypto-browserify": "^3.12.0",
1215
"draft-js": "^0.10.5",
1316
"enzyme": "3.9.0",
1417
"enzyme-adapter-react-16": "1.10.0",
1518
"file-saver": "2.0.1",
1619
"filesize": "4.1.2",
1720
"formik": "1.5.1",
1821
"history": "4.7.2",
22+
"https-browserify": "^1.0.0",
1923
"jsonwebtoken": "^8.5.1",
2024
"line-awesome": "github:icons8/line-awesome",
2125
"lodash": "4.17.11",
2226
"md5": "2.2.1",
2327
"moment": "^2.22.2",
28+
"os-browserify": "^0.3.0",
29+
"process": "^0.11.10",
2430
"rc-color-picker": "^1.2.6",
2531
"rc-hammerjs": "0.6.9",
2632
"react": "^16.8.3",
2733
"react-animate-height": "^2.0.16",
34+
"react-app-rewired": "^2.2.1",
2835
"react-bootstrap": "^1.0.0-beta.16",
2936
"react-bootstrap-table": "4.1.5",
3037
"react-dev-utils": "^10.2.1",
@@ -33,7 +40,7 @@
3340
"react-router": "4.3.1",
3441
"react-router-dom": "4.3.1",
3542
"react-router-hash-link": "^1.2.1",
36-
"react-scripts": "^3.4.4",
43+
"react-scripts": "^5.0.1",
3744
"react-scrollspy": "^3.3.5",
3845
"react-test-render": "1.1.1",
3946
"react-toastify": "^5.4.0",
@@ -46,12 +53,16 @@
4653
"sass": "^1.69.5",
4754
"sass-loader": "7.1.0",
4855
"skycons": "^1.0.0",
56+
"stream-browserify": "^3.0.0",
57+
"stream-http": "^3.2.0",
4958
"styled-components": "4.1.3",
59+
"url": "^0.11.4",
60+
"vm-browserify": "^1.1.2",
5061
"yup": "0.26.10"
5162
},
5263
"scripts": {
53-
"build": "cross-env REACT_APP_ENVIRONMENT=production react-scripts --openssl-legacy-provider build",
54-
"start": "cross-env REACT_APP_ENVIRONMENT=development react-scripts --openssl-legacy-provider start"
64+
"build": "cross-env REACT_APP_ENVIRONMENT=production react-app-rewired --openssl-legacy-provider build",
65+
"start": "cross-env REACT_APP_ENVIRONMENT=development react-app-rewired --openssl-legacy-provider start"
5566
},
5667
"eslintConfig": {
5768
"extends": "react-app"
@@ -71,4 +82,4 @@
7182
"cross-env": "5.2.0",
7283
"less": "3.9.0"
7384
}
74-
}
85+
}

0 commit comments

Comments
 (0)