-
-
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
[Q] Transpiling to ES5 for browser compability #16
Comments
We aim for Node.js, not the browser. You can find a more detailed explanation here sindresorhus/ama#446 |
Okay, didn't check the repository to be honest before I answered. But there is a |
Not sure what your setup is, but you could use something like https://github.com/babel/babelify to browserify and transpile it to ES5. |
I'm using webpack and will transpile the library to es5 using Babel (or replace it). But because this is the first time I had to do this for a npm dependency, I wanted to ask you about it. Correct me if I'm wrong, but I think it's not common. But I see the point that this library is targeting nodejs. So thanks for your support. |
I think @sindresorhus expects the user to transpile, but I could be wrong. |
It's all in the AMA question I linked to in my first reply. |
Hi @sindresorhus, I'm wondering why this library is using ES6 and is not transpiling to ES5. Isn't that the common behavior nowadays? Is it intentional not to do it?
The text was updated successfully, but these errors were encountered: