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

Changed for ... of loops to use 'let' as 'const' breaks in firefox #153

Closed
wants to merge 1 commit into from
Closed

Conversation

brunocangs
Copy link

I have been using the package with webpack for react, and it breaks on firefox because it says 'missing = in const declaration'. This seems to fix it

@sindresorhus
Copy link
Owner

It's up to you to transpile it with Babel if you want to use it in older browsers. 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