Skip to content

Commit 6a475c8

Browse files
feat!: BREAKING CHANGE → drop webpack v4 support (#289)
* Support webpack@5 typings BREAKING CHANGES: removed webpack@4 support * chore: revert package version, this bump is done at release Co-authored-by: Andrew Powell <shellscape@users.noreply.github.com>
1 parent 793a035 commit 6a475c8

File tree

15 files changed

+326
-1904
lines changed

15 files changed

+326
-1904
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ A Webpack plugin for generating an asset manifest.
2424

2525
`webpack-manifest-plugin` is an [evergreen 🌲](./.github/FAQ.md#what-does-evergreen-mean) module.
2626

27-
This module requires an [Active LTS](https://github.com/nodejs/Release) Node version (v10.0.0+) and Webpack v4.44.0+.
27+
This module requires an [Active LTS](https://github.com/nodejs/Release) Node version (v12.0.0+) and Webpack v5.0.0.
2828

2929
## Contributing
3030

package.json

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,20 @@
1919
"lint": "pnpm lint:docs && pnpm lint:json && pnpm lint:js",
2020
"lint-staged": "lint-staged",
2121
"lint:docs": "prettier --write README.md",
22-
"lint:js": "eslint --cache --fix --cache scripts src test",
22+
"lint:js": "eslint --cache --fix --cache src test",
2323
"lint:json": "prettier --write codecov.yml package.json",
24-
"posttest": "pnpm switch -- \"4\" && pnpm install",
2524
"prepublishOnly": "pnpm lint && pnpm build",
2625
"pretest": "pnpm build",
2726
"security": "pnpm audit --audit-level=high --prod",
28-
"switch": "cd scripts && ts-node --project ./tsconfig.json ./set-webpack-version.ts",
29-
"test": "pnpm test:v4 && pnpm test:v5",
30-
"test:v4": "ava",
31-
"test:v5": "pnpm switch -- \"5\" && pnpm install && ava"
27+
"test": "pnpm install && ava"
3228
},
3329
"files": [
3430
"dist",
3531
"README.md",
3632
"LICENSE"
3733
],
3834
"peerDependencies": {
39-
"webpack": "^4.44.2 || ^5.47.0"
35+
"webpack": "^5.47.0"
4036
},
4137
"dependencies": {
4238
"tapable": "^2.0.0",
@@ -48,17 +44,15 @@
4844
"@commitlint/config-conventional": "^13.1.0",
4945
"@svgr/webpack": "^5.4.0",
5046
"@types/node": "^16.4.3",
51-
"@types/webpack": "^4.41.26",
47+
"@types/webpack": "^5.28.0",
5248
"@types/webpack-sources": "^2.1.1",
5349
"@wordpress/dependency-extraction-webpack-plugin": "^3.1.0",
5450
"ava": "^3.13.0",
5551
"codecov": "^3.1.0",
5652
"copy-webpack-plugin": "^6.2.1",
57-
"css-loader": "^1.0.0",
5853
"del": "^6.0.0",
5954
"eslint-config-shellscape": "^4.2.0",
60-
"extract-text-webpack-plugin": "^3.0.2",
61-
"file-loader": "^2.0.0",
55+
"file-loader": "^6.2.0",
6256
"husky": "4.3.8",
6357
"lint-staged": "11.1.1",
6458
"memory-fs": "^0.4.1",
@@ -71,7 +65,7 @@
7165
"ts-node": "^10.1.0",
7266
"tslib": "^2.3.0",
7367
"typescript": "^4.3.5",
74-
"webpack": "^4.44.2",
68+
"webpack": "^5.47.0",
7569
"webpack-merge": "^5.2.0"
7670
},
7771
"ava": {
@@ -107,15 +101,5 @@
107101
"test/"
108102
]
109103
},
110-
"pre-commit": "lint-staged",
111-
"webpack-versions": {
112-
"4": {
113-
"webpack": "^4.44.2",
114-
"@types/webpack": "^4.41.26"
115-
},
116-
"5": {
117-
"webpack": "latest",
118-
"@types/webpack": "latest"
119-
}
120-
}
104+
"pre-commit": "lint-staged"
121105
}

0 commit comments

Comments
 (0)