terser-webpack-plugin
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -5,2 +5,9 @@ # Changelog | ||
### [2.1.2](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.1.1...v2.1.2) (2019-09-28) | ||
### Bug Fixes | ||
* regexp for `some` comments ([#168](https://github.com/webpack-contrib/terser-webpack-plugin/issues/168)) ([4c4b1f1](https://github.com/webpack-contrib/terser-webpack-plugin/commit/4c4b1f1)) | ||
### [2.1.1](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.1.0...v2.1.1) (2019-09-27) | ||
@@ -7,0 +14,0 @@ |
@@ -74,3 +74,2 @@ "use strict"; | ||
// Preserve using "commentsOpts" or "some" | ||
// Todo remove this in next major release | ||
condition.preserve = typeof commentsOpts !== 'undefined' ? commentsOpts : 'some'; | ||
@@ -102,3 +101,3 @@ condition.extract = false; | ||
condition[key] = (astNode, comment) => { | ||
return comment.type === 'comment2' && /^\**!|@preserve|@license|@cc_on/i.test(comment.value); | ||
return comment.type === 'comment2' && /@preserve|@lic|@cc_on|^\**!/i.test(comment.value); | ||
}; | ||
@@ -105,0 +104,0 @@ |
{ | ||
"name": "terser-webpack-plugin", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Terser plugin for webpack", | ||
@@ -46,3 +46,3 @@ "license": "MIT", | ||
"source-map": "^0.6.1", | ||
"terser": "^4.3.3", | ||
"terser": "^4.3.4", | ||
"webpack-sources": "^1.4.3" | ||
@@ -66,3 +66,3 @@ }, | ||
"eslint-plugin-import": "^2.18.2", | ||
"husky": "^3.0.5", | ||
"husky": "^3.0.7", | ||
"jest": "^24.9.0", | ||
@@ -69,0 +69,0 @@ "jest-junit": "^8.0.0", |
54073
722
Updatedterser@^4.3.4