Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't uglify my project with rgb-hex as a dependency #4

Closed
mahcloud opened this issue Mar 24, 2017 · 1 comment
Closed

Can't uglify my project with rgb-hex as a dependency #4

mahcloud opened this issue Mar 24, 2017 · 1 comment

Comments

@mahcloud
Copy link

I'm running UglifyJS which is a very standard library.
I get the following error:

Parse error at index.js:3,43
ule.exports = (red, green, blue, alpha) => {

SyntaxError: Invalid assignment
at JS_Parse_Error.Object.defineProperty.get (eval at (/usr/local/lib/node_modules/uglify-js/tools/node.js:27:1), :86:23)
at /usr/local/lib/node_modules/uglify-js/bin/uglifyjs:384:39
at time_it (/usr/local/lib/node_modules/uglify-js/bin/uglifyjs:620:15)
at /usr/local/lib/node_modules/uglify-js/bin/uglifyjs:345:9
at tryToString (fs.js:414:3)
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:401:12)

@SamVerschueren
Copy link

As pointed out in tbe PR, we aim for Node.js, not the browser. You can find a more detailed explanation here sindresorhus/ama#446

Repository owner locked and limited conversation to collaborators Mar 25, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants