Skip to content

[Breaking] Updates to uglify v3.#31

Merged
gdborton merged 1 commit into
masterfrom
update-to-uglifyJS3
Jul 26, 2017
Merged

[Breaking] Updates to uglify v3.#31
gdborton merged 1 commit into
masterfrom
update-to-uglifyJS3

Conversation

@gdborton
Copy link
Copy Markdown
Owner

This is a breaking change as we allow our users to directly pass options to
uglify, and those options have changed in uglify v3. Updating to uglify v3
paves the way for enabling optional es6 support, as uglify-es shares the same
api as uglify v3.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.04%) to 95.0% when pulling ace6db9 on update-to-uglifyJS3 into a12e5f5 on master.

Comment thread package.json
"pify": "^3.0.0",
"tmp": "0.0.29",
"uglify-js": "^2.6.2",
"uglify-js": "^3.0.21",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you make uglify-js a peerDependency so we can use custom versions? Also, it might be better to use uglify-es, since it's a superset of uglify-js with additional support for ES6? Thanks!

Copy link
Copy Markdown
Owner Author

@gdborton gdborton Jul 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current plan is to support both uglify-js and uglify-es to allow users to build both es6 and es5 versions of their code. This'll be done by listing both in devDependencies and then using whichever is specified in the plugin.

@gdborton gdborton force-pushed the update-to-uglifyJS3 branch from ace6db9 to 0fa5e7c Compare July 26, 2017 00:59
This is a breaking change as we allow our users to directly pass options to
uglify, and those options have changed in uglify v3.  Updating to uglify v3
paves the way for enabling optional es6 support, as uglify-es shares the same
api as uglify v3.
@gdborton gdborton force-pushed the update-to-uglifyJS3 branch from 0fa5e7c to 6e2f0ba Compare July 26, 2017 01:08
@coveralls
Copy link
Copy Markdown

coveralls commented Jul 26, 2017

Coverage Status

Coverage increased (+0.03%) to 95.902% when pulling 6e2f0ba on update-to-uglifyJS3 into 2f5fa40 on master.

@gdborton gdborton merged commit 60c2463 into master Jul 26, 2017
@gdborton gdborton deleted the update-to-uglifyJS3 branch July 26, 2017 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants