terser-webpack-plugin
Advanced tools
Comparing version 4.0.0 to 4.1.0
@@ -5,2 +5,13 @@ # Changelog | ||
## [4.1.0](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v4.0.0...v4.1.0) (2020-08-10) | ||
### Features | ||
* pass license files as related assets for webpack@5 ([7d3ae95](https://github.com/webpack-contrib/terser-webpack-plugin/commit/7d3ae95bc890a5211efe234301050815ef8e687e)) | ||
### Bug Fixes | ||
* compatibility with `10.13` version of `Node.js` | ||
## [4.0.0](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v3.1.0...v4.0.0) (2020-08-04) | ||
@@ -11,5 +22,5 @@ | ||
* the `warningsFilter` option was remove without replacement, | ||
* the `warningsFilter` option was removed without replacement, | ||
* `terser` version is `5`, | ||
* returned value of the `minify` option was changes, only `code`/`map`/`extractedComments` are valid | ||
* return value of the `minify` option was changed, only `code`/`map`/`extractedComments` are valid | ||
@@ -16,0 +27,0 @@ |
@@ -244,7 +244,13 @@ "use strict"; | ||
outputSource = new _webpackSources.RawSource(code); | ||
} // Write extracted comments to commentsFilename | ||
} | ||
const assetInfo = { ...info, | ||
minimized: true | ||
}; // Write extracted comments to commentsFilename | ||
if (hasExtractedComments) { | ||
let banner; // Add a banner to the original file | ||
let banner; | ||
assetInfo.related = { | ||
license: commentsFilename | ||
}; // Add a banner to the original file | ||
@@ -289,5 +295,3 @@ if (hasBannerForExtractedComments) { | ||
TerserPlugin.updateAsset(compilation, name, outputSource, { ...info, | ||
minimized: true | ||
}); | ||
TerserPlugin.updateAsset(compilation, name, outputSource, assetInfo); | ||
}; | ||
@@ -294,0 +298,0 @@ |
{ | ||
"name": "terser-webpack-plugin", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"description": "Terser plugin for webpack", | ||
@@ -46,3 +46,3 @@ "license": "MIT", | ||
"find-cache-dir": "^3.3.1", | ||
"jest-worker": "^26.2.1", | ||
"jest-worker": "^26.3.0", | ||
"p-limit": "^3.0.2", | ||
@@ -57,4 +57,4 @@ "schema-utils": "^2.6.6", | ||
"@babel/cli": "^7.10.5", | ||
"@babel/core": "^7.10.5", | ||
"@babel/preset-env": "^7.10.4", | ||
"@babel/core": "^7.11.1", | ||
"@babel/preset-env": "^7.11.0", | ||
"@commitlint/cli": "^9.1.2", | ||
@@ -64,3 +64,3 @@ "@commitlint/config-conventional": "^9.1.1", | ||
"@webpack-contrib/eslint-config-webpack": "^3.0.0", | ||
"babel-jest": "^26.2.1", | ||
"babel-jest": "^26.3.0", | ||
"copy-webpack-plugin": "^6.0.3", | ||
@@ -75,3 +75,3 @@ "cross-env": "^7.0.2", | ||
"husky": "^4.2.5", | ||
"jest": "^26.2.1", | ||
"jest": "^26.3.0", | ||
"lint-staged": "^10.2.11", | ||
@@ -84,3 +84,3 @@ "memfs": "^3.2.0", | ||
"webpack": "^4.44.1", | ||
"worker-loader": "^3.0.0" | ||
"worker-loader": "^3.0.1" | ||
}, | ||
@@ -87,0 +87,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67531
807
Updatedjest-worker@^26.3.0