Skip to content

Commit

Permalink
Use uglify-js as uglify-es got deprecated in favour of terser
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed May 17, 2018
1 parent 3beec87 commit cd475c9
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -33,7 +33,7 @@ uglify(options, minifier)

`options` – default: `{}`, type: `object`. [UglifyJS API options](https://github.com/mishoo/UglifyJS2/tree/harmony#minify-options)

`minifier` – default: `require('uglify-es').minify`, type: `function`. Module to use as a minifier. You can use other versions (or forks) of UglifyJS instead default one.
`minifier` – default: `require('uglify-js').minify`, type: `function`. Module to use as a minifier. You can use other versions (or forks) of UglifyJS instead default one.

## Examples

Expand Down
2 changes: 1 addition & 1 deletion index.js
@@ -1,4 +1,4 @@
const minify = require("uglify-es").minify;
const minify = require("uglify-js").minify;

function uglify(userOptions, minifier) {
if (minifier === undefined) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -23,7 +23,7 @@
"author": "Bogdan Chadkin <trysound@yandex.ru>",
"license": "MIT",
"dependencies": {
"uglify-es": "^3.3.7"
"uglify-js": "^3.3.25"
},
"devDependencies": {
"jest": "^22.1.4",
Expand Down
20 changes: 10 additions & 10 deletions yarn.lock
Expand Up @@ -478,9 +478,9 @@ combined-stream@^1.0.5, combined-stream@~1.0.5:
dependencies:
delayed-stream "~1.0.0"

commander@~2.13.0:
version "2.13.0"
resolved "https://registry.yarnpkg.com/commander/-/commander-2.13.0.tgz#6964bca67685df7c1f1430c584f07d7597885b9c"
commander@~2.15.0:
version "2.15.1"
resolved "https://registry.yarnpkg.com/commander/-/commander-2.15.1.tgz#df46e867d0fc2aec66a34662b406a9ccafff5b0f"

concat-map@0.0.1:
version "0.0.1"
Expand Down Expand Up @@ -2556,13 +2556,6 @@ type-check@~0.3.2:
dependencies:
prelude-ls "~1.1.2"

uglify-es@^3.3.7:
version "3.3.7"
resolved "https://registry.yarnpkg.com/uglify-es/-/uglify-es-3.3.7.tgz#d1249af668666aba7cb1163e277455be9eb393cf"
dependencies:
commander "~2.13.0"
source-map "~0.6.1"

uglify-js@^2.6:
version "2.8.27"
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.8.27.tgz#47787f912b0f242e5b984343be8e35e95f694c9c"
Expand All @@ -2572,6 +2565,13 @@ uglify-js@^2.6:
optionalDependencies:
uglify-to-browserify "~1.0.0"

uglify-js@^3.3.25:
version "3.3.25"
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.3.25.tgz#3266ccb87c5bea229f69041a0296010d6477d539"
dependencies:
commander "~2.15.0"
source-map "~0.6.1"

uglify-to-browserify@~1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7"
Expand Down

0 comments on commit cd475c9

Please sign in to comment.