Merge pull request #11270 from webpack/dependabot/npm_and_yarn/terser-webpack-plugin-3.1.0

chore(deps): bump terser-webpack-plugin from 3.0.8 to 3.1.0
This commit is contained in:
Tobias Koppers 2020-08-04 16:32:25 +02:00 committed by GitHub
commit d1d15567df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 32 additions and 48 deletions

View File

@ -188,6 +188,7 @@ describe("Stats", () => {
"emitted": true, "emitted": true,
"filteredRelated": undefined, "filteredRelated": undefined,
"info": Object { "info": Object {
"minimized": true,
"size": 111, "size": 111,
}, },
"name": "chunkB.js", "name": "chunkB.js",
@ -205,6 +206,7 @@ describe("Stats", () => {
"emitted": true, "emitted": true,
"filteredRelated": undefined, "filteredRelated": undefined,
"info": Object { "info": Object {
"minimized": true,
"size": 182, "size": 182,
}, },
"name": "entryA.js", "name": "entryA.js",
@ -222,6 +224,7 @@ describe("Stats", () => {
"emitted": true, "emitted": true,
"filteredRelated": undefined, "filteredRelated": undefined,
"info": Object { "info": Object {
"minimized": true,
"size": 2219, "size": 2219,
}, },
"name": "entryB.js", "name": "entryB.js",

View File

@ -11,10 +11,6 @@ describe("TestCases", () => {
moduleIds: "named", moduleIds: "named",
chunkIds: "named" chunkIds: "named"
}, },
plugins: [new webpack.HotModuleReplacementPlugin()], plugins: [new webpack.HotModuleReplacementPlugin()]
deprecations: [
// TODO update terser-webpack-plugin to use getCache()
expect.objectContaining({ code: "DEP_WEBPACK_COMPILATION_CACHE" })
]
}); });
}); });

View File

@ -7,10 +7,6 @@ describe("TestCases", () => {
minimize: true, minimize: true,
optimization: { optimization: {
moduleIds: "hashed" moduleIds: "hashed"
}, }
deprecations: [
// TODO update terser-webpack-plugin to use getCache()
expect.objectContaining({ code: "DEP_WEBPACK_COMPILATION_CACHE" })
]
}); });
}); });

View File

@ -5,10 +5,6 @@ describe("TestCases", () => {
name: "minimized-source-map", name: "minimized-source-map",
mode: "production", mode: "production",
devtool: "eval-cheap-module-source-map", devtool: "eval-cheap-module-source-map",
minimize: true, minimize: true
deprecations: [
// TODO update terser-webpack-plugin to use getCache()
expect.objectContaining({ code: "DEP_WEBPACK_COMPILATION_CACHE" })
]
}); });
}); });

View File

@ -3,10 +3,6 @@ const { describeCases } = require("./TestCases.template");
describe("TestCases", () => { describe("TestCases", () => {
describeCases({ describeCases({
name: "production", name: "production",
mode: "production", mode: "production"
deprecations: [
// TODO update terser-webpack-plugin to use getCache()
expect.objectContaining({ code: "DEP_WEBPACK_COMPILATION_CACHE" })
]
}); });
}); });

View File

@ -823,7 +823,7 @@ Child undefined:
Hash: ce07045a2e545aaa7cc0 Hash: ce07045a2e545aaa7cc0
Time: X ms Time: X ms
Built at: 1970-04-20 12:42:42 Built at: 1970-04-20 12:42:42
asset bundle0.js 556 bytes [emitted] (name: main) asset bundle0.js 556 bytes [emitted] [minimized] (name: main)
Entrypoint main = bundle0.js Entrypoint main = bundle0.js
WARNING in Terser Plugin: Dropping unused function someRemoteUnUsedFunction1 [webpack://./a.js:3,0] WARNING in Terser Plugin: Dropping unused function someRemoteUnUsedFunction1 [webpack://./a.js:3,0]
@ -852,43 +852,43 @@ Child Terser:
Hash: ce07045a2e545aaa7cc0 Hash: ce07045a2e545aaa7cc0
Time: X ms Time: X ms
Built at: 1970-04-20 12:42:42 Built at: 1970-04-20 12:42:42
asset bundle1.js 556 bytes [emitted] (name: main) asset bundle1.js 556 bytes [emitted] [minimized] (name: main)
Entrypoint main = bundle1.js Entrypoint main = bundle1.js
Child /Terser/: Child /Terser/:
Hash: ce07045a2e545aaa7cc0 Hash: ce07045a2e545aaa7cc0
Time: X ms Time: X ms
Built at: 1970-04-20 12:42:42 Built at: 1970-04-20 12:42:42
asset bundle2.js 556 bytes [emitted] (name: main) asset bundle2.js 556 bytes [emitted] [minimized] (name: main)
Entrypoint main = bundle2.js Entrypoint main = bundle2.js
Child warnings => true: Child warnings => true:
Hash: ce07045a2e545aaa7cc0 Hash: ce07045a2e545aaa7cc0
Time: X ms Time: X ms
Built at: 1970-04-20 12:42:42 Built at: 1970-04-20 12:42:42
asset bundle3.js 556 bytes [emitted] (name: main) asset bundle3.js 556 bytes [emitted] [minimized] (name: main)
Entrypoint main = bundle3.js Entrypoint main = bundle3.js
Child [Terser]: Child [Terser]:
Hash: ce07045a2e545aaa7cc0 Hash: ce07045a2e545aaa7cc0
Time: X ms Time: X ms
Built at: 1970-04-20 12:42:42 Built at: 1970-04-20 12:42:42
asset bundle4.js 556 bytes [emitted] (name: main) asset bundle4.js 556 bytes [emitted] [minimized] (name: main)
Entrypoint main = bundle4.js Entrypoint main = bundle4.js
Child [/Terser/]: Child [/Terser/]:
Hash: ce07045a2e545aaa7cc0 Hash: ce07045a2e545aaa7cc0
Time: X ms Time: X ms
Built at: 1970-04-20 12:42:42 Built at: 1970-04-20 12:42:42
asset bundle5.js 556 bytes [emitted] (name: main) asset bundle5.js 556 bytes [emitted] [minimized] (name: main)
Entrypoint main = bundle5.js Entrypoint main = bundle5.js
Child [warnings => true]: Child [warnings => true]:
Hash: ce07045a2e545aaa7cc0 Hash: ce07045a2e545aaa7cc0
Time: X ms Time: X ms
Built at: 1970-04-20 12:42:42 Built at: 1970-04-20 12:42:42
asset bundle6.js 556 bytes [emitted] (name: main) asset bundle6.js 556 bytes [emitted] [minimized] (name: main)
Entrypoint main = bundle6.js Entrypoint main = bundle6.js
Child should not filter: Child should not filter:
Hash: ce07045a2e545aaa7cc0 Hash: ce07045a2e545aaa7cc0
Time: X ms Time: X ms
Built at: 1970-04-20 12:42:42 Built at: 1970-04-20 12:42:42
asset bundle7.js 556 bytes [emitted] (name: main) asset bundle7.js 556 bytes [emitted] [minimized] (name: main)
Entrypoint main = bundle7.js Entrypoint main = bundle7.js
WARNING in Terser Plugin: Dropping unused function someRemoteUnUsedFunction1 [webpack://./a.js:3,0] WARNING in Terser Plugin: Dropping unused function someRemoteUnUsedFunction1 [webpack://./a.js:3,0]
@ -917,7 +917,7 @@ Child /should not filter/:
Hash: ce07045a2e545aaa7cc0 Hash: ce07045a2e545aaa7cc0
Time: X ms Time: X ms
Built at: 1970-04-20 12:42:42 Built at: 1970-04-20 12:42:42
asset bundle8.js 556 bytes [emitted] (name: main) asset bundle8.js 556 bytes [emitted] [minimized] (name: main)
Entrypoint main = bundle8.js Entrypoint main = bundle8.js
WARNING in Terser Plugin: Dropping unused function someRemoteUnUsedFunction1 [webpack://./a.js:3,0] WARNING in Terser Plugin: Dropping unused function someRemoteUnUsedFunction1 [webpack://./a.js:3,0]
@ -946,7 +946,7 @@ Child warnings => false:
Hash: ce07045a2e545aaa7cc0 Hash: ce07045a2e545aaa7cc0
Time: X ms Time: X ms
Built at: 1970-04-20 12:42:42 Built at: 1970-04-20 12:42:42
asset bundle9.js 556 bytes [emitted] (name: main) asset bundle9.js 556 bytes [emitted] [minimized] (name: main)
Entrypoint main = bundle9.js Entrypoint main = bundle9.js
WARNING in Terser Plugin: Dropping unused function someRemoteUnUsedFunction1 [webpack://./a.js:3,0] WARNING in Terser Plugin: Dropping unused function someRemoteUnUsedFunction1 [webpack://./a.js:3,0]
@ -975,7 +975,7 @@ Child [should not filter]:
Hash: ce07045a2e545aaa7cc0 Hash: ce07045a2e545aaa7cc0
Time: X ms Time: X ms
Built at: 1970-04-20 12:42:42 Built at: 1970-04-20 12:42:42
asset bundle10.js 556 bytes [emitted] (name: main) asset bundle10.js 556 bytes [emitted] [minimized] (name: main)
Entrypoint main = bundle10.js Entrypoint main = bundle10.js
WARNING in Terser Plugin: Dropping unused function someRemoteUnUsedFunction1 [webpack://./a.js:3,0] WARNING in Terser Plugin: Dropping unused function someRemoteUnUsedFunction1 [webpack://./a.js:3,0]
@ -1004,7 +1004,7 @@ Child [/should not filter/]:
Hash: ce07045a2e545aaa7cc0 Hash: ce07045a2e545aaa7cc0
Time: X ms Time: X ms
Built at: 1970-04-20 12:42:42 Built at: 1970-04-20 12:42:42
asset bundle11.js 556 bytes [emitted] (name: main) asset bundle11.js 556 bytes [emitted] [minimized] (name: main)
Entrypoint main = bundle11.js Entrypoint main = bundle11.js
WARNING in Terser Plugin: Dropping unused function someRemoteUnUsedFunction1 [webpack://./a.js:3,0] WARNING in Terser Plugin: Dropping unused function someRemoteUnUsedFunction1 [webpack://./a.js:3,0]
@ -1033,7 +1033,7 @@ Child [warnings => false]:
Hash: ce07045a2e545aaa7cc0 Hash: ce07045a2e545aaa7cc0
Time: X ms Time: X ms
Built at: 1970-04-20 12:42:42 Built at: 1970-04-20 12:42:42
asset bundle12.js 556 bytes [emitted] (name: main) asset bundle12.js 556 bytes [emitted] [minimized] (name: main)
Entrypoint main = bundle12.js Entrypoint main = bundle12.js
WARNING in Terser Plugin: Dropping unused function someRemoteUnUsedFunction1 [webpack://./a.js:3,0] WARNING in Terser Plugin: Dropping unused function someRemoteUnUsedFunction1 [webpack://./a.js:3,0]
@ -3034,7 +3034,7 @@ Child
Hash: 584bbadef99167e48f78 Hash: 584bbadef99167e48f78
Time: X ms Time: X ms
Built at: 1970-04-20 12:42:42 Built at: 1970-04-20 12:42:42
asset main.js 207 bytes [emitted] (name: main) asset main.js 207 bytes [emitted] [minimized] (name: main)
Entrypoint main = main.js Entrypoint main = main.js
./index.js + 2 modules 1.18 KiB [built] ./index.js + 2 modules 1.18 KiB [built]
[no exports] [no exports]
@ -3055,7 +3055,7 @@ Child
Hash: 01c4c80354460261d226 Hash: 01c4c80354460261d226
Time: X ms Time: X ms
Built at: 1970-04-20 12:42:42 Built at: 1970-04-20 12:42:42
asset main.no-side.js 1.37 KiB [emitted] (name: main) asset main.no-side.js 1.37 KiB [emitted] [minimized] (name: main)
Entrypoint main = main.no-side.js Entrypoint main = main.no-side.js
./index.js 116 bytes [built] ./index.js 116 bytes [built]
[no exports] [no exports]
@ -4278,7 +4278,7 @@ exports[`StatsTestCases should print correct stats for warnings-terser 1`] = `
"Hash: 3edc6fa0be0cae472d04 "Hash: 3edc6fa0be0cae472d04
Time: X ms Time: X ms
Built at: 1970-04-20 12:42:42 Built at: 1970-04-20 12:42:42
asset bundle.js 823 bytes [emitted] (name: main) asset bundle.js 823 bytes [emitted] [minimized] (name: main)
Entrypoint main = bundle.js Entrypoint main = bundle.js
./index.js 299 bytes [built] ./index.js 299 bytes [built]
[no exports used] [no exports used]

View File

@ -1 +0,0 @@
module.exports = [{ code: /DEP_WEBPACK_COMPILATION_CACHE/ }];

View File

@ -1 +0,0 @@
module.exports = [{ code: /DEP_WEBPACK_COMPILATION_CACHE/ }];

View File

@ -1 +0,0 @@
module.exports = [{ code: /DEP_WEBPACK_COMPILATION_CACHE/ }];

View File

@ -1 +0,0 @@
module.exports = [{ code: /DEP_WEBPACK_COMPILATION_CACHE/ }];

View File

@ -4142,11 +4142,12 @@ jest-worker@^25.5.0:
merge-stream "^2.0.0" merge-stream "^2.0.0"
supports-color "^7.0.0" supports-color "^7.0.0"
jest-worker@^26.1.0: jest-worker@^26.2.1:
version "26.1.0" version "26.2.1"
resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-26.1.0.tgz#65d5641af74e08ccd561c240e7db61284f82f33d" resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-26.2.1.tgz#5d630ab93f666b53f911615bc13e662b382bd513"
integrity sha512-Z9P5pZ6UC+kakMbNJn+tA2RdVdNX5WH1x+5UCBZ9MxIK24pjYtFt96fK+UwBTrjLYm232g1xz0L3eTh51OW+yQ== integrity sha512-+XcGMMJDTeEGncRb5M5Zq9P7K4sQ1sirhjdOxsN1462h6lFo9w59bl2LVQmdGEEeU3m+maZCkS2Tcc9SfCHO4A==
dependencies: dependencies:
"@types/node" "*"
merge-stream "^2.0.0" merge-stream "^2.0.0"
supports-color "^7.0.0" supports-color "^7.0.0"
@ -6629,13 +6630,13 @@ terminal-link@^2.0.0:
supports-hyperlinks "^2.0.0" supports-hyperlinks "^2.0.0"
terser-webpack-plugin@^3.0.2: terser-webpack-plugin@^3.0.2:
version "3.0.8" version "3.1.0"
resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-3.0.8.tgz#d1a53442a143e09e00c880e8d77c1e79cb05318b" resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-3.1.0.tgz#91e6d39571460ed240c0cf69d295bcf30ebf98cb"
integrity sha512-ygwK8TYMRTYtSyLB2Mhnt90guQh989CIq/mL/2apwi6rA15Xys4ydNUiH4ah6EZCfQxSk26ZFQilZ4IQ6IZw6A== integrity sha512-cjdZte66fYkZ65rQ2oJfrdCAkkhJA7YLYk5eGOcGCSGlq0ieZupRdjedSQXYknMPo2IveQL+tPdrxUkERENCFA==
dependencies: dependencies:
cacache "^15.0.5" cacache "^15.0.5"
find-cache-dir "^3.3.1" find-cache-dir "^3.3.1"
jest-worker "^26.1.0" jest-worker "^26.2.1"
p-limit "^3.0.2" p-limit "^3.0.2"
schema-utils "^2.6.6" schema-utils "^2.6.6"
serialize-javascript "^4.0.0" serialize-javascript "^4.0.0"