webpack 4.25.1 → 4.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Chunk.js +1 -1
- package/lib/WebpackOptionsDefaulter.js +3 -3
- package/package.json +2 -2
package/lib/Chunk.js
CHANGED
@@ -430,7 +430,7 @@ class Chunk {
|
|
430
430
|
}
|
431
431
|
|
432
432
|
/**
|
433
|
-
* @param {Chunk} newChunk the new chunk that will be split out of
|
433
|
+
* @param {Chunk} newChunk the new chunk that will be split out of the current chunk
|
434
434
|
* @returns {void}
|
435
435
|
*/
|
436
436
|
split(newChunk) {
|
@@ -302,10 +302,10 @@ class WebpackOptionsDefaulter extends OptionsDefaulter {
|
|
302
302
|
this.set("optimization.minimizer", "make", options => [
|
303
303
|
{
|
304
304
|
apply: compiler => {
|
305
|
-
// Lazy load the
|
306
|
-
const
|
305
|
+
// Lazy load the Terser plugin
|
306
|
+
const TerserPlugin = require("terser-webpack-plugin");
|
307
307
|
const SourceMapDevToolPlugin = require("./SourceMapDevToolPlugin");
|
308
|
-
new
|
308
|
+
new TerserPlugin({
|
309
309
|
cache: true,
|
310
310
|
parallel: true,
|
311
311
|
sourceMap:
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "webpack",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.26.0",
|
4
4
|
"author": "Tobias Koppers @sokra",
|
5
5
|
"description": "Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.",
|
6
6
|
"license": "MIT",
|
@@ -26,7 +26,7 @@
|
|
26
26
|
"node-libs-browser": "^2.0.0",
|
27
27
|
"schema-utils": "^0.4.4",
|
28
28
|
"tapable": "^1.1.0",
|
29
|
-
"
|
29
|
+
"terser-webpack-plugin": "^1.1.0",
|
30
30
|
"watchpack": "^1.5.0",
|
31
31
|
"webpack-sources": "^1.3.0"
|
32
32
|
},
|