-
Notifications
You must be signed in to change notification settings - Fork 40
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
Export as ES5 module #5
Comments
Yes, it is, because published version is always compiled to ES5. |
Actually only ES6 missing features of Node v6 are compiled because it uses es2015-node6/object-rest preset. This means this lib can't be used un the browser. |
Ohh, sorry, didn't realize that. |
The preset |
Version 1.2.0 is out. Should work for you now :) |
It works! Thank you. |
Today many build config does not support ES6 modules because it uses an old version of Uglify.
This is the case for
create-react-app
(see here)Until
uglify-es
use spreads (see here), would it be possible to distribute this lib as an ES5 module ?The text was updated successfully, but these errors were encountered: