terser-webpack-plugin
Advanced tools
Comparing version 1.2.3 to 1.2.4
@@ -1,5 +0,15 @@ | ||
# Change Log | ||
# Changelog | ||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. | ||
### [1.2.4](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v1.2.3...v1.2.4) (2019-05-15) | ||
### Bug Fixes | ||
* disable parallel on WSL due bugs ([#90](https://github.com/webpack-contrib/terser-webpack-plugin/issues/90)) ([d9533dd](https://github.com/webpack-contrib/terser-webpack-plugin/commit/d9533dd)) | ||
* fallback for cache directory ([#86](https://github.com/webpack-contrib/terser-webpack-plugin/issues/86)) ([3cdd2ed](https://github.com/webpack-contrib/terser-webpack-plugin/commit/3cdd2ed)) | ||
<a name="1.2.3"></a> | ||
@@ -6,0 +16,0 @@ ## [1.2.3](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v1.2.2...v1.2.3) (2019-02-25) |
@@ -18,2 +18,4 @@ "use strict"; | ||
var _isWsl = _interopRequireDefault(require("is-wsl")); | ||
var _minify = _interopRequireDefault(require("./minify")); | ||
@@ -33,3 +35,3 @@ | ||
name: 'terser-webpack-plugin' | ||
}) : cache; // In some cases cpus() returns undefined | ||
}) || _os.default.tmpdir() : cache; // In some cases cpus() returns undefined | ||
// https://github.com/nodejs/node/issues/19022 | ||
@@ -39,4 +41,6 @@ | ||
length: 1 | ||
}; | ||
this.maxConcurrentWorkers = parallel === true ? cpus.length - 1 : Math.min(Number(parallel) || 0, cpus.length - 1); | ||
}; // WSL sometimes freezes, error seems to be on the WSL side | ||
// https://github.com/webpack-contrib/terser-webpack-plugin/issues/21 | ||
this.maxConcurrentWorkers = _isWsl.default ? 1 : parallel === true ? cpus.length - 1 : Math.min(Number(parallel) || 0, cpus.length - 1); | ||
} | ||
@@ -43,0 +47,0 @@ |
101
package.json
{ | ||
"name": "terser-webpack-plugin", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "Terser plugin for webpack", | ||
@@ -19,6 +19,5 @@ "license": "MIT", | ||
"clean": "del-cli dist", | ||
"commitlint": "commitlint", | ||
"commitmsg": "commitlint -e $GIT_PARAMS", | ||
"commitlint": "commitlint --from=master", | ||
"lint": "eslint --cache src test", | ||
"prepublish": "npm run build", | ||
"prepare": "npm run build", | ||
"release": "standard-version", | ||
@@ -30,7 +29,3 @@ "security": "npm audit", | ||
"pretest": "npm run lint", | ||
"test": "npm run test:only", | ||
"ci:lint": "npm run lint && npm run security", | ||
"ci:test": "npm run test:only -- --runInBand", | ||
"ci:coverage": "npm run test:coverage -- --runInBand", | ||
"ci:lint:commits": "commitlint --from=origin/master --to=${CIRCLE_SHA1}", | ||
"test": "npm run test:coverage", | ||
"defaults": "webpack-defaults" | ||
@@ -45,36 +40,38 @@ }, | ||
"dependencies": { | ||
"cacache": "^11.0.2", | ||
"cacache": "^11.3.2", | ||
"find-cache-dir": "^2.0.0", | ||
"is-wsl": "^1.1.0", | ||
"schema-utils": "^1.0.0", | ||
"serialize-javascript": "^1.4.0", | ||
"serialize-javascript": "^1.7.0", | ||
"source-map": "^0.6.1", | ||
"terser": "^3.16.1", | ||
"webpack-sources": "^1.1.0", | ||
"worker-farm": "^1.5.2" | ||
"terser": "^3.17.0", | ||
"webpack-sources": "^1.3.0", | ||
"worker-farm": "^1.7.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.1.5", | ||
"@babel/core": "^7.1.6", | ||
"@babel/polyfill": "^7.0.0", | ||
"@babel/preset-env": "^7.1.6", | ||
"@commitlint/cli": "^7.0.0", | ||
"@commitlint/config-conventional": "^7.0.1", | ||
"@webpack-contrib/defaults": "^3.0.0", | ||
"@babel/cli": "^7.4.4", | ||
"@babel/core": "^7.4.4", | ||
"@babel/preset-env": "^7.4.4", | ||
"@commitlint/cli": "^7.6.1", | ||
"@commitlint/config-conventional": "^7.6.0", | ||
"@webpack-contrib/defaults": "^4.0.1", | ||
"@webpack-contrib/eslint-config-webpack": "^3.0.0", | ||
"babel-jest": "^24.0.0", | ||
"cross-env": "^5.1.3", | ||
"del": "^3.0.0", | ||
"babel-jest": "^24.8.0", | ||
"commitlint-azure-pipelines-cli": "^1.0.1", | ||
"cross-env": "^5.2.0", | ||
"del": "^4.1.1", | ||
"del-cli": "^1.1.0", | ||
"eslint": "^5.5.0", | ||
"eslint": "^5.16.0", | ||
"eslint-config-webpack": "^1.2.5", | ||
"eslint-plugin-import": "^2.8.0", | ||
"eslint-plugin-prettier": "^3.0.0", | ||
"husky": "^1.2.1", | ||
"jest": "^24.0.0", | ||
"lint-staged": "^8.1.0", | ||
"eslint-plugin-import": "^2.17.2", | ||
"eslint-plugin-prettier": "^3.1.0", | ||
"husky": "^2.2.0", | ||
"jest": "^24.8.0", | ||
"jest-junit": "^6.4.0", | ||
"lint-staged": "^8.1.6", | ||
"memory-fs": "^0.4.1", | ||
"prettier": "^1.14.0", | ||
"standard-version": "^5.0.0", | ||
"uglify-js": "^3.4.3", | ||
"webpack": "^4.16.3" | ||
"prettier": "^1.17.1", | ||
"standard-version": "^6.0.1", | ||
"uglify-js": "^3.5.12", | ||
"webpack": "^4.31.0" | ||
}, | ||
@@ -97,37 +94,3 @@ "keywords": [ | ||
"optimizer" | ||
], | ||
"babel": { | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"targets": { | ||
"node": "6.9.0" | ||
}, | ||
"useBuiltIns": "usage" | ||
} | ||
] | ||
] | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged" | ||
} | ||
}, | ||
"lint-staged": { | ||
"*.js": [ | ||
"eslint --fix", | ||
"git add" | ||
] | ||
}, | ||
"commitlint": { | ||
"extends": [ | ||
"@commitlint/config-conventional" | ||
] | ||
}, | ||
"prettier": { | ||
"singleQuote": true, | ||
"trailingComma": "es5", | ||
"arrowParens": "always" | ||
} | ||
] | ||
} |
@@ -19,6 +19,4 @@ <div align="center"> | ||
## Requirements | ||
> ℹ️ For `webpack@3` use [terser-webpack-plugin-legacy](https://www.npmjs.com/package/terser-webpack-plugin-legacy) package | ||
This module requires a minimum of Node v6.9.0 and Webpack v4.0.0. | ||
## Getting Started | ||
@@ -727,4 +725,4 @@ | ||
[deps-url]: https://david-dm.org/webpack-contrib/terser-webpack-plugin | ||
[tests]: https://img.shields.io/circleci/project/github/webpack-contrib/terser-webpack-plugin.svg | ||
[tests-url]: https://circleci.com/gh/webpack-contrib/terser-webpack-plugin | ||
[tests]: https://dev.azure.com/webpack-contrib/terser-webpack-plugin/_apis/build/status/webpack-contrib.terser-webpack-plugin?branchName=master | ||
[tests-url]: https://dev.azure.com/webpack-contrib/terser-webpack-plugin/_build/latest?definitionId=7&branchName=master | ||
[cover]: https://codecov.io/gh/webpack-contrib/terser-webpack-plugin/branch/master/graph/badge.svg | ||
@@ -731,0 +729,0 @@ [cover-url]: https://codecov.io/gh/webpack-contrib/terser-webpack-plugin |
48431
722
10
25
732
+ Addedis-wsl@^1.1.0
Updatedcacache@^11.3.2
Updatedserialize-javascript@^1.7.0
Updatedterser@^3.17.0
Updatedwebpack-sources@^1.3.0
Updatedworker-farm@^1.7.0