Skip to content

Commit 8892cd8

Browse files
committed
Update Webpack dependencies to 4.47.0, which supports Node 18.
1 parent d18cf33 commit 8892cd8

File tree

22 files changed

+309
-279
lines changed

22 files changed

+309
-279
lines changed

.github/workflows/ci.yml

-12
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@ jobs:
3535
with:
3636
node-version: ${{ matrix.NodeVersion }}
3737

38-
# Workaround for Node 18 incompatibility with Webpack 4
39-
- name: Enable Webpack 4 workaround
40-
shell: bash
41-
run: echo "NODE_OPTIONS=--openssl-legacy-provider" >> "$GITHUB_ENV"
42-
if: matrix.NodeVersion == 18
43-
4438
- name: Verify Change Logs
4539
run: node common/scripts/install-run-rush.js change --verify
4640

@@ -67,9 +61,3 @@ jobs:
6761
# Prevent time-based browserslist update warning
6862
# See https://github.com/microsoft/rushstack/issues/2981
6963
BROWSERSLIST_IGNORE_OLD_DATA: 1
70-
71-
# One of the post run actions apparently uses older Node.js that rejects --openssl-legacy-provider
72-
- name: Revert Webpack 4 workaround
73-
shell: bash
74-
run: echo "NODE_OPTIONS=" >> "$GITHUB_ENV"
75-
if: matrix.NodeVersion == 18

build-tests-samples/heft-storybook-react-tutorial-storykit/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@
3333
"style-loader": "~2.0.0",
3434
"terser-webpack-plugin": "~3.0.8",
3535
"typescript": "~5.0.4",
36-
"webpack": "~4.44.2"
36+
"webpack": "~4.47.0"
3737
}
3838
}

build-tests-samples/heft-storybook-react-tutorial/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@
3838
"source-map-loader": "~1.1.3",
3939
"style-loader": "~2.0.0",
4040
"typescript": "~5.0.4",
41-
"webpack": "~4.44.2"
41+
"webpack": "~4.47.0"
4242
}
4343
}

build-tests/hashed-folder-copy-plugin-webpack4-test/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
"html-webpack-plugin": "~4.5.2",
2121
"typescript": "~5.0.4",
2222
"webpack-bundle-analyzer": "~4.5.0",
23-
"webpack": "~4.44.2"
23+
"webpack": "~4.47.0"
2424
}
2525
}

build-tests/heft-sass-test/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"sass": "~1.3.0",
3434
"style-loader": "~2.0.0",
3535
"typescript": "~5.0.4",
36-
"webpack": "~4.44.2"
36+
"webpack": "~4.47.0"
3737
},
3838
"dependencies": {
3939
"buttono": "~1.0.2"

build-tests/heft-webpack4-everything-test/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
"tslint": "~5.20.1",
2525
"tslint-microsoft-contrib": "~6.2.0",
2626
"typescript": "~5.0.4",
27-
"webpack": "~4.44.2"
27+
"webpack": "~4.47.0"
2828
}
2929
}

build-tests/localization-plugin-test-01/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"html-webpack-plugin": "~4.5.2",
1818
"ts-loader": "6.0.0",
1919
"typescript": "~5.0.4",
20-
"webpack": "~4.44.2",
20+
"webpack": "~4.47.0",
2121
"webpack-bundle-analyzer": "~4.5.0",
2222
"webpack-cli": "~3.3.2",
2323
"webpack-dev-server": "~4.9.3"

build-tests/localization-plugin-test-02/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222
"webpack-bundle-analyzer": "~4.5.0",
2323
"webpack-cli": "~3.3.2",
2424
"webpack-dev-server": "~4.9.3",
25-
"webpack": "~4.44.2"
25+
"webpack": "~4.47.0"
2626
}
2727
}

build-tests/localization-plugin-test-03/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
"webpack-bundle-analyzer": "~4.5.0",
2020
"webpack-cli": "~3.3.2",
2121
"webpack-dev-server": "~4.9.3",
22-
"webpack": "~4.44.2"
22+
"webpack": "~4.47.0"
2323
}
2424
}

build-tests/set-webpack-public-path-plugin-webpack4-test/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
"eslint": "~8.7.0",
2020
"html-webpack-plugin": "~4.5.2",
2121
"typescript": "~5.0.4",
22-
"webpack": "~4.44.2"
22+
"webpack": "~4.47.0"
2323
}
2424
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@rushstack/hashed-folder-copy-plugin",
5+
"comment": "Update Webpack peerDependency to ~4.47.0.",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@rushstack/hashed-folder-copy-plugin"
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@rushstack/heft-webpack4-plugin",
5+
"comment": "Update Webpack peerDependency to ~4.47.0 and removes the warning about Node <v18, as Webpack 4.47.0 fixes the underlying issue.",
6+
"type": "minor"
7+
}
8+
],
9+
"packageName": "@rushstack/heft-webpack4-plugin"
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@rushstack/webpack4-localization-plugin",
5+
"comment": "Update Webpack peerDependency to ~4.47.0.",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@rushstack/webpack4-localization-plugin"
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@rushstack/webpack4-module-minifier-plugin",
5+
"comment": "Update Webpack peerDependency to ~4.47.0.",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@rushstack/webpack4-module-minifier-plugin"
10+
}

common/config/rush/common-versions.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
"style-loader": ["~2.0.0"],
9696
"terser-webpack-plugin": ["~3.0.8"],
9797
"terser": ["~4.8.0"],
98-
"webpack": ["~4.44.2"],
98+
"webpack": ["~4.47.0"],
9999
"@types/node": [
100100
// These versions are used by testing projects
101101
"ts2.9",

0 commit comments

Comments
 (0)