Socket
Socket
Sign inDemoInstall

terser-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

terser-webpack-plugin - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

8

CHANGELOG.md

@@ -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 @@

13

dist/index.js

@@ -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",

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