☕️ Classic, reliable, trusted test framework for Node.js and the browser
chore(dev-deps): upgrade `webpack` from v6 to v7 + remove obsolete `fail-on-errors-webpack-plugin` (#5908)
Đỗ Trọng Hải103ad416546b
diff --git a/package-lock.json b/package-lock.jsonindex 42b0daf2..a6aeee60 100644--- a/package-lock.json+++ b/package-lock.json@@ -50,7 +50,6 @@"cross-env": "^10.0.0","eslint": "^10.0.0","eslint-plugin-n": "^18.0.0",- "fail-on-errors-webpack-plugin": "^3.0.0","globals": "^17.0.0","installed-check": "^10.0.0","karma": "^6.4.2",@@ -79,7 +78,7 @@"unexpected-set": "^3.0.0","unexpected-sinon": "^11.0.0","webpack": "^5.67.0",- "webpack-cli": "^7.0.0"+ "webpack-cli": "^7.0.2"},"engines": {"node": "^20.19.0 || >=22.12.0"@@ -4622,18 +4621,6 @@"integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==","dev": true},- "node_modules/fail-on-errors-webpack-plugin": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/fail-on-errors-webpack-plugin/-/fail-on-errors-webpack-plugin-3.0.0.tgz",- "integrity": "sha512-U0WqfpDZV4HI9ueb7sWmZzEr+yjo0R3JCCw6nIfzJU6gnN1rU1k+1XPea7LqcZTOwmfbf4DuhMswWl1quxj7Xw==",- "dev": true,- "engines": {- "node": ">=5.10"- },- "peerDependencies": {- "webpack": ">=4.0.0"- }- },"node_modules/fast-deep-equal": {"version": "3.1.3","resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",diff --git a/package.json b/package.jsonindex 3a94183d..356a5f25 100644--- a/package.json+++ b/package.json@@ -129,7 +129,6 @@"cross-env": "^10.0.0","eslint": "^10.0.0","eslint-plugin-n": "^18.0.0",- "fail-on-errors-webpack-plugin": "^3.0.0","globals": "^17.0.0","installed-check": "^10.0.0","karma": "^6.4.2",@@ -158,7 +157,7 @@"unexpected-set": "^3.0.0","unexpected-sinon": "^11.0.0","webpack": "^5.67.0",- "webpack-cli": "^7.0.0"+ "webpack-cli": "^7.0.2"},"files": ["bin/*mocha*",diff --git a/test/browser-specific/fixtures/webpack/webpack.config.js b/test/browser-specific/fixtures/webpack/webpack.config.jsindex c8c41561..5da4c1a6 100644--- a/test/browser-specific/fixtures/webpack/webpack.config.js+++ b/test/browser-specific/fixtures/webpack/webpack.config.js@@ -1,6 +1,5 @@'use strict';-const FailOnErrorsPlugin = require('fail-on-errors-webpack-plugin');const {tmpdir} = require('node:os');const {join} = require('node:path');@@ -9,16 +8,11 @@ const outputPath = join(tmpdir(), 'mocha-test-webpack');console.error('output dir: %s', outputPath);module.exports = {+ bail: true,entry: require.resolve('./webpack.fixture.mjs'),target: 'browserslist:last 2 Chrome versions',output: {path: outputPath,chunkFormat: 'commonjs'},- plugins: [- new FailOnErrorsPlugin({- failOnErrors: true,- failOnWarnings: false- })- ]};