Skip to content

Commit 09a94c4

Browse files
authored
Bump webpack 5 (#4951)
* Fix .gitignore * Upgrade to webpack 5.95.0 * (chore) rush change * (chore) Update snapshots * (chore) fix lint issue * (chore) revise change files, add comments, | undefined --------- Co-authored-by: David Michon <[email protected]>
1 parent dc02c17 commit 09a94c4

File tree

79 files changed

+1288
-851
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+1288
-851
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ build/Release/
3636

3737
# Dependency directories
3838
node_modules/
39+
**/.storybook/node_modules
3940
jspm_packages/
4041

4142
# TypeScript cache

build-tests-samples/heft-webpack-basic-tutorial/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@
3131
"source-map-loader": "~3.0.1",
3232
"style-loader": "~3.3.1",
3333
"typescript": "~5.4.2",
34-
"webpack": "~5.82.1"
34+
"webpack": "~5.95.0"
3535
}
3636
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
"html-webpack-plugin": "~5.5.0",
1919
"typescript": "~5.4.2",
2020
"webpack-bundle-analyzer": "~4.5.0",
21-
"webpack": "~5.82.1"
21+
"webpack": "~5.95.0"
2222
}
2323
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"source-map-loader": "~3.0.1",
3131
"tslint": "~5.20.1",
3232
"typescript": "~5.4.2",
33-
"webpack": "~5.82.1",
33+
"webpack": "~5.95.0",
3434
"@types/node": "18.17.15"
3535
}
3636
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
"eslint": "~8.57.0",
2121
"html-webpack-plugin": "~5.5.0",
2222
"typescript": "~5.4.2",
23-
"webpack": "~5.82.1"
23+
"webpack": "~5.95.0"
2424
}
2525
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "",
5+
"type": "none",
6+
"packageName": "@microsoft/rush"
7+
}
8+
],
9+
"packageName": "@microsoft/rush",
10+
"email": "[email protected]"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "",
5+
"type": "none",
6+
"packageName": "@microsoft/webpack5-load-themed-styles-loader"
7+
}
8+
],
9+
"packageName": "@microsoft/webpack5-load-themed-styles-loader",
10+
"email": "[email protected]"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "Ensure compatibility with webpack 5.95.0",
5+
"type": "patch",
6+
"packageName": "@rushstack/hashed-folder-copy-plugin"
7+
}
8+
],
9+
"packageName": "@rushstack/hashed-folder-copy-plugin",
10+
"email": "[email protected]"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "",
5+
"type": "none",
6+
"packageName": "@rushstack/heft-dev-cert-plugin"
7+
}
8+
],
9+
"packageName": "@rushstack/heft-dev-cert-plugin",
10+
"email": "[email protected]"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "Update to webpack 5.95.0",
5+
"type": "minor",
6+
"packageName": "@rushstack/heft-web-rig"
7+
}
8+
],
9+
"packageName": "@rushstack/heft-web-rig",
10+
"email": "[email protected]"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "Update the `webpack` peer dependency to `^5.82.1` from `~5.82.1`. Also bump `webpack-dev-server` to `^5.1.0`. This drops support for Node 16 and includes some breaking configuration changes. See https://github.com/webpack/webpack-dev-server/blob/master/migration-v5.md.",
5+
"type": "minor",
6+
"packageName": "@rushstack/heft-webpack5-plugin"
7+
}
8+
],
9+
"packageName": "@rushstack/heft-webpack5-plugin",
10+
"email": "[email protected]"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "",
5+
"type": "none",
6+
"packageName": "@rushstack/package-extractor"
7+
}
8+
],
9+
"packageName": "@rushstack/package-extractor",
10+
"email": "[email protected]"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "Ensure compatibility with webpack 5.95.0",
5+
"type": "patch",
6+
"packageName": "@rushstack/set-webpack-public-path-plugin"
7+
}
8+
],
9+
"packageName": "@rushstack/set-webpack-public-path-plugin",
10+
"email": "[email protected]"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "Ensure compatibility with webpack 5.95.0",
5+
"type": "patch",
6+
"packageName": "@rushstack/webpack-embedded-dependencies-plugin"
7+
}
8+
],
9+
"packageName": "@rushstack/webpack-embedded-dependencies-plugin",
10+
"email": "[email protected]"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "Ensure compatibility with webpack 5.95.0",
5+
"type": "patch",
6+
"packageName": "@rushstack/webpack-plugin-utilities"
7+
}
8+
],
9+
"packageName": "@rushstack/webpack-plugin-utilities",
10+
"email": "[email protected]"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "Ensure compatibility with webpack 5.95.0",
5+
"type": "patch",
6+
"packageName": "@rushstack/webpack-preserve-dynamic-require-plugin"
7+
}
8+
],
9+
"packageName": "@rushstack/webpack-preserve-dynamic-require-plugin",
10+
"email": "[email protected]"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "Ensure compatibility with webpack 5.95.0",
5+
"type": "patch",
6+
"packageName": "@rushstack/webpack-workspace-resolve-plugin"
7+
}
8+
],
9+
"packageName": "@rushstack/webpack-workspace-resolve-plugin",
10+
"email": "[email protected]"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "Ensure compatibility with webpack 5.95.0",
5+
"type": "patch",
6+
"packageName": "@rushstack/webpack5-localization-plugin"
7+
}
8+
],
9+
"packageName": "@rushstack/webpack5-localization-plugin",
10+
"email": "[email protected]"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"comment": "Ensure compatibility with webpack 5.95.0",
5+
"type": "patch",
6+
"packageName": "@rushstack/webpack5-module-minifier-plugin"
7+
}
8+
],
9+
"packageName": "@rushstack/webpack5-module-minifier-plugin",
10+
"email": "[email protected]"
11+
}

common/config/subspaces/build-tests-subspace/pnpm-lock.yaml

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// DO NOT MODIFY THIS FILE MANUALLY BUT DO COMMIT IT. It is generated and used by Rush.
22
{
3-
"pnpmShrinkwrapHash": "5bcae02a351bdf06f03416e25805514c5933db4d",
3+
"pnpmShrinkwrapHash": "0e569d956f72f98565ea4207cba2d7b359e5cdaa",
44
"preferredVersionsHash": "ce857ea0536b894ec8f346aaea08cfd85a5af648",
5-
"packageJsonInjectedDependenciesHash": "145bb9f959c5c63291e466f8101ba34db6c75c2b"
5+
"packageJsonInjectedDependenciesHash": "15081ac6b4174f98e6a82a839055fbda1a33680d"
66
}

common/config/subspaces/default/common-versions.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@
120120
"terser-webpack-plugin": ["~3.0.8"],
121121
"terser": ["~4.8.0"],
122122
"webpack": ["~4.47.0"],
123+
"webpack-dev-server": ["~4.9.3"],
123124
"@types/node": [
124125
// These versions are used by testing projects
125126
"ts2.9",

0 commit comments

Comments
 (0)