-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
UglifyJS issue #21
Comments
Since the module uses ES2015 arrow functions, it is not compatible with client side code. I believe Meteor.js is working to enable Babel for node modules, but we are not there yet. Note that arrow functions are still slower than legacy functions... I don't know why everyone use it everywhere already. |
I'll let @sindresorhus respond to this (: |
Got same error |
|
See: sindresorhus/ama#446 |
@sindresorhus what do you mean "no"? The link you suggest shows that declarations are generally 1.4x slower! Thus, in the actual implementation, you are effectively declaring arrow functions 3 times. Therefore, my statement is completely valid. But this is beside the main issue; this module cannot be used on client side as it does not provide a browser friendly source, and UglifyJS fails. You closed this issue without addressing the real problem. |
The
I linked to sindresorhus/ama#446. I don't have the time to answer this every time it comes up. |
While building a meteor app, I got this error
It seems odd to me that this line would throw an error, but here we are.
The text was updated successfully, but these errors were encountered: