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

Camelcase compiled to es5 #41

Closed
wants to merge 2 commits into from
Closed

Camelcase compiled to es5 #41

wants to merge 2 commits into from

Conversation

boazhoch
Copy link

@boazhoch boazhoch commented Sep 5, 2018

@sindresorhus We were using your package in our project and we had a problem in IE 11, its throws an error beacuse IE don't know ES6 syntax.

So essantialy what I did, i have added webpack to the project alongside with babel, and know when running build webpack will bundle for es5.

So from now on camelCase is supported for IE! 🎉🎊

@sindresorhus
Copy link
Owner

Duplicate of #23

@sindresorhus sindresorhus marked this as a duplicate of #23 Sep 5, 2018
@sindresorhus
Copy link
Owner

This module mainly targets Node.js, not the browser. It's up to you to transpile it with Babel if you want to use it in the browser. You can find a more detailed explanation here: sindresorhus/ama#446

If you use Webpack, check out babel-engine-plugin, which transpiles only the dependencies that needs to be transpiled.

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.

2 participants