Socket
Socket
Sign inDemoInstall

terser-webpack-plugin

Package Overview
Dependencies
125
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.1 to 3.0.2

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [3.0.2](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v3.0.1...v3.0.2) (2020-05-26)
### Bug Fixes
* compatibility with webpack@5 ([#250](https://github.com/webpack-contrib/terser-webpack-plugin/issues/250)) ([d3ff61c](https://github.com/webpack-contrib/terser-webpack-plugin/commit/d3ff61cbb714da8fb6ee1f7659bf6796774ab4cc))
### [3.0.1](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v3.0.0...v3.0.1) (2020-05-06)

@@ -7,0 +14,0 @@

14

dist/index.js

@@ -172,3 +172,3 @@ "use strict";

let input;
let inputSourceMap;
let inputSourceMap; // TODO refactor after drop webpack@4, webpack@5 always has `sourceAndMap` on sources

@@ -182,7 +182,9 @@ if (this.options.sourceMap && assetSource.sourceAndMap) {

if (TerserPlugin.isSourceMap(map)) {
inputSourceMap = map;
} else {
inputSourceMap = map;
compilation.warnings.push(new Error(`${file} contains invalid source map`));
if (map) {
if (TerserPlugin.isSourceMap(map)) {
inputSourceMap = map;
} else {
inputSourceMap = map;
compilation.warnings.push(new Error(`${file} contains invalid source map`));
}
}

@@ -189,0 +191,0 @@ } else {

@@ -26,4 +26,2 @@ "use strict";

} = {}) => ({
ecma,
warnings,
parse: { ...parse

@@ -40,11 +38,13 @@ },

},
module,
// Ignoring sourceMap from options
sourceMap: null,
toplevel,
nameCache,
ie8,
ecma,
keep_classnames,
keep_fnames,
safari10
ie8,
module,
nameCache,
safari10,
toplevel,
warnings
});

@@ -51,0 +51,0 @@

{
"name": "terser-webpack-plugin",
"version": "3.0.1",
"version": "3.0.2",
"description": "Terser plugin for webpack",

@@ -65,4 +65,4 @@ "license": "MIT",

"del": "^5.1.0",
"del-cli": "^3.0.0",
"eslint": "^6.8.0",
"del-cli": "^3.0.1",
"eslint": "^7.1.0",
"eslint-config-prettier": "^6.11.0",

@@ -72,9 +72,9 @@ "eslint-plugin-import": "^2.20.2",

"jest": "^26.0.1",
"lint-staged": "^10.2.2",
"memfs": "^3.1.2",
"lint-staged": "^10.2.6",
"memfs": "^3.2.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.0.5",
"standard-version": "^7.1.0",
"uglify-js": "^3.9.2",
"webpack": "next"
"standard-version": "^8.0.0",
"uglify-js": "^3.9.3",
"webpack": "^4.43.0"
},

@@ -81,0 +81,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc