Skip to content

Commit 34a6926

Browse files
authored
chore: upgrade to Node 22.22.2 and fix yarn build (#131)
- Bump NODE_VERSION 20.20.2 → 22.22.2 in Dockerfile and .nvmrc - Replace node-sass@8 (EOL, no Node 22 binary) with sass@^1.77 (dart-sass) - Bump webpack@^5.94, webpack-cli@^5.1.4 (resolves OpenSSL-3 legacy hash issue) - Bump copy-webpack-plugin@^11 for webpack 5.94+ compatibility - Add util:false to webpack.common.js resolve.fallback (webpack 5.106 is stricter than 5.70 about unresolved Node built-ins; jsdom/tough-cookie transitively require util which should not be browser-polyfilled) - Drop unused devDeps: clean-webpack-plugin, html-webpack-plugin, optimize-css-assets-webpack-plugin, path polyfill, webpack-node-externals - Regenerate yarn.lock
1 parent 3f48186 commit 34a6926

5 files changed

Lines changed: 280 additions & 2465 deletions

File tree

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20.20.2
1+
22.22.2

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM php:8.3-fpm
22

33
ARG DEBIAN_FRONTEND=noninteractive
44
ARG NVM_VERSION="v0.40.3"
5-
ENV NODE_VERSION="20.20.2"
5+
ENV NODE_VERSION="22.22.2"
66
ARG YARN_VERSION="1.22.22"
77
ARG GITHUB_OAUTH_TOKEN
88
ARG XDEBUG_VERSION="xdebug-3.3.2"

package.json

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,18 @@
2626
"babel-loader": "^8.2.4",
2727
"babel-plugin-react-remove-properties": "^0.3.0",
2828
"babel-plugin-transform-class-properties": "^6.24.1",
29-
"clean-webpack-plugin": "^3.0.0",
30-
"copy-webpack-plugin": "^6.4.1",
29+
"copy-webpack-plugin": "^11.0.0",
3130
"css-loader": "^6.7.1",
3231
"dotenv-webpack": "^1.7.0",
3332
"file-loader": "^6.2.0",
3433
"history": "^4.7.2",
35-
"html-webpack-plugin": "^3.2.0",
3634
"i18n-react": "^0.6.4",
3735
"identity-obj-proxy": "^3.0.0",
3836
"immutability-helper": "^2.7.1",
3937
"jest": "^26.6.3",
4038
"less": "^4.1.2",
4139
"less-loader": "^10.2.0",
4240
"mini-css-extract-plugin": "^2.6.0",
43-
"node-sass": "8.0.0",
44-
"optimize-css-assets-webpack-plugin": "^6.0.1",
45-
"path": "^0.12.7",
4641
"postcss-loader": "^6.2.1",
4742
"react": "^17.0.2",
4843
"react-datetime": "^2.15.0",
@@ -55,17 +50,17 @@
5550
"redux-persist": "^5.10.0",
5651
"redux-thunk": "^2.3.0",
5752
"regenerator-runtime": "^0.13.7",
53+
"sass": "^1.77.0",
5854
"sass-loader": "^12.6.0",
5955
"style-loader": "^3.3.1",
6056
"superagent": "8.0.9",
6157
"timesync": "^1.0.5",
6258
"urijs": "^1.19.1",
6359
"url-loader": "^4.1.1",
64-
"webpack": "^5.70.0",
65-
"webpack-cli": "^4.9.2",
60+
"webpack": "^5.94.0",
61+
"webpack-cli": "^5.1.4",
6662
"webpack-dev-server": "^4.7.4",
67-
"webpack-merge": "^5.8.0",
68-
"webpack-node-externals": "^3.0.0"
63+
"webpack-merge": "^5.8.0"
6964
},
7065
"dependencies": {
7166
"@emotion/core": "^10.0.17",

webpack.common.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ module.exports = {
5353
assert:false,
5454
tls: false,
5555
net:false,
56-
child_process: false
56+
child_process: false,
57+
util: false
5758
}
5859
},
5960
plugins: [

0 commit comments

Comments
 (0)