Socket
Socket
Sign inDemoInstall

uglifyjs-webpack-plugin

Package Overview
Dependencies
Maintainers
4
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uglifyjs-webpack-plugin - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

12

CHANGELOG.md

@@ -5,2 +5,14 @@ # Change Log

<a name="1.1.1"></a>
## [1.1.1](https://github.com/webpack-contrib/uglifyjs-webpack-plugin/compare/v1.1.0...v1.1.1) (2017-11-23)
### Bug Fixes
* comments behavior (`options.uglifyOptions.comments/options.extractComments`) ([#174](https://github.com/webpack-contrib/uglifyjs-webpack-plugin/issues/174)) ([321c9f6](https://github.com/webpack-contrib/uglifyjs-webpack-plugin/commit/321c9f6))
* **index:** ensure to nullify `inputSourceMap` if `sourcemap` is unavailable (`devtool`) ([#169](https://github.com/webpack-contrib/uglifyjs-webpack-plugin/issues/169)) ([062ec72](https://github.com/webpack-contrib/uglifyjs-webpack-plugin/commit/062ec72))
* **index:** set `maxConcurrentCallsPerWorker` to 1 (`options.parallel`) ([#173](https://github.com/webpack-contrib/uglifyjs-webpack-plugin/issues/173)) ([07c57c1](https://github.com/webpack-contrib/uglifyjs-webpack-plugin/commit/07c57c1))
<a name="1.1.0"></a>

@@ -7,0 +19,0 @@ # [1.1.0](https://github.com/webpack-contrib/uglifyjs-webpack-plugin/compare/v1.0.1...v1.1.0) (2017-11-19)

20

dist/index.js

@@ -91,3 +91,3 @@ 'use strict';

output: {
comments: /^\**!|@preserve|@license|@cc_on/
comments: false
}

@@ -133,14 +133,14 @@ }, uglifyOptions)

if (_this.options.sourceMap) {
if (asset.sourceAndMap) {
var sourceAndMap = asset.sourceAndMap();
inputSourceMap = sourceAndMap.map;
input = sourceAndMap.source;
} else {
inputSourceMap = asset.map();
input = asset.source();
}
if (_this.options.sourceMap && asset.sourceAndMap) {
var _asset$sourceAndMap = asset.sourceAndMap(),
source = _asset$sourceAndMap.source,
map = _asset$sourceAndMap.map;
input = source;
inputSourceMap = map;
sourceMap = new _sourceMap.SourceMapConsumer(inputSourceMap);
} else {
input = asset.source();
inputSourceMap = null;
}

@@ -147,0 +147,0 @@

@@ -66,5 +66,4 @@ 'use strict';

if (this.maxConcurrentWorkers > 0) {
this.workers = (0, _workerFarm2.default)({
maxConcurrentWorkers: this.maxConcurrentWorkers
}, workerFile);
var workerOptions = process.platform === 'win32' ? { maxConcurrentWorkers: this.maxConcurrentWorkers, maxConcurrentCallsPerWorker: 1 } : { maxConcurrentWorkers: this.maxConcurrentWorkers };
this.workers = (0, _workerFarm2.default)(workerOptions, workerFile);
this.boundWorkers = function (options, cb) {

@@ -71,0 +70,0 @@ return _this.workers(JSON.stringify(options, _serialization.encode), cb);

@@ -34,3 +34,3 @@ 'use strict';

shebang: true,
comments: /^\**!|@preserve|@license|@cc_on/,
comments: false,
beautify: false,

@@ -55,3 +55,7 @@ semicolons: true

if (typeof options.extractComments === 'boolean' || typeof options.extractComments === 'string' || options.extractComments instanceof RegExp) {
// /^\**!|@preserve|@license|@cc_on/
if (typeof options.extractComments === 'boolean') {
condition.preserve = commentsOpts;
condition.extract = /^\**!|@preserve|@license|@cc_on/;
} else if (typeof options.extractComments === 'string' || options.extractComments instanceof RegExp) {
// extractComments specifies the extract condition and commentsOpts specifies the preserve condition

@@ -58,0 +62,0 @@ condition.preserve = commentsOpts;

{
"name": "uglifyjs-webpack-plugin",
"version": "1.1.0",
"version": "1.1.1",
"description": "UglifyJS plugin for webpack",

@@ -5,0 +5,0 @@ "author": "webpack Contrib Team",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc