terser-webpack-plugin
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -5,2 +5,10 @@ # Changelog | ||
### [2.0.1](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.0.0...v2.0.1) (2019-09-06) | ||
### Bug Fixes | ||
* reduce memory usage ([#145](https://github.com/webpack-contrib/terser-webpack-plugin/issues/145)) ([815e533](https://github.com/webpack-contrib/terser-webpack-plugin/commit/815e533)) | ||
* revert do not run parallel mode when you have only one file ([#146](https://github.com/webpack-contrib/terser-webpack-plugin/issues/146)) ([6613a97](https://github.com/webpack-contrib/terser-webpack-plugin/commit/6613a97)) | ||
## [2.0.0](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v1.4.1...v2.0.0) (2019-09-05) | ||
@@ -7,0 +15,0 @@ |
@@ -152,6 +152,2 @@ "use strict"; | ||
const optimizeFn = async (compilation, chunks) => { | ||
const taskRunner = new _TaskRunner.default({ | ||
cache: this.options.cache, | ||
parallel: this.options.parallel | ||
}); | ||
const processedAssets = new WeakSet(); | ||
@@ -229,2 +225,11 @@ const tasks = []; | ||
}); | ||
if (tasks.length === 0) { | ||
return Promise.resolve(); | ||
} | ||
const taskRunner = new _TaskRunner.default({ | ||
cache: this.options.cache, | ||
parallel: this.options.parallel | ||
}); | ||
const completedTasks = await taskRunner.run(tasks); | ||
@@ -231,0 +236,0 @@ await taskRunner.exit(); |
@@ -55,7 +55,3 @@ "use strict"; | ||
async run(tasks) { | ||
if (tasks.length === 0) { | ||
return Promise.resolve([]); | ||
} | ||
if (this.numberWorkers > 1 && tasks.length > 1) { | ||
if (this.numberWorkers > 1) { | ||
this.worker = new _jestWorker.default(workerPath, { | ||
@@ -62,0 +58,0 @@ numWorkers: this.numberWorkers |
{ | ||
"name": "terser-webpack-plugin", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Terser plugin for webpack", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
50523