Skip to content

Commit cf57b67

Browse files
committed
maint(build): Use new inspectpack instead duplicate-package-checker-webpack-plugin.
1 parent 298be11 commit cf57b67

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
"husky": "^7.0.4",
7070
"identity-obj-proxy": "^3.0.0",
7171
"imports-loader": "^3.1.0",
72+
"inspectpack": "^4.7.1",
7273
"jest": "^27.3.1",
7374
"jest-watch-typeahead": "^1.0.0",
7475
"prettier": "^2.4.1",

webpack/webpack.config.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ const webpack = require("webpack");
44
const webpack_helpers = require("./webpack-helpers");
55

66
// plugins
7-
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
8-
const TerserPlugin = require("terser-webpack-plugin");
9-
const DuplicatePackageCheckerPlugin = require("duplicate-package-checker-webpack-plugin");
107
const CopyPlugin = require("copy-webpack-plugin");
8+
const TerserPlugin = require("terser-webpack-plugin");
9+
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
10+
const { DuplicatesPlugin } = require("inspectpack/plugin");
1111

1212
module.exports = (env, argv, config) => {
1313
const base_config = {
@@ -114,9 +114,10 @@ module.exports = (env, argv, config) => {
114114
jQuery: "jquery",
115115
jquery: "jquery",
116116
}),
117-
new DuplicatePackageCheckerPlugin({
117+
new DuplicatesPlugin({
118+
emitErrors: false,
118119
verbose: true,
119-
emitError: true,
120+
ignoredPackages: [/.css/],
120121
}),
121122
],
122123
};

0 commit comments

Comments
 (0)