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 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, and then chunk raphi twil=
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 uglifyjs plugin
306
- const UglifyJsPlugin = require("uglifyjs-webpack-plugin");
305
+ // Lazy load the Terser plugin
306
+ const TerserPlugin = require("terser-webpack-plugin");
307
307
  const SourceMapDevToolPlugin = require("./SourceMapDevToolPlugin");
308
- new UglifyJsPlugin({
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.25.1",
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
- "uglifyjs-webpack-plugin": "^1.2.4",
29
+ "terser-webpack-plugin": "^1.1.0",
30
30
  "watchpack": "^1.5.0",
31
31
  "webpack-sources": "^1.3.0"
32
32
  },