-
Notifications
You must be signed in to change notification settings - Fork 986
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
Don't require global babelHelpers in ES6 build #45
Comments
I have this problem ReferenceError: babelHelpers is not defined, do you know how to solve this? |
…them being required in ES6 build (#45)
Just published v0.0.11 to npm, which should address this. Give it a spin and let me know if you run into any issues. |
Yeah! Now it works, thanks @clauderic |
@clauderic yeah, this works, but runtime helpers has a different, unfortunate, issue :/ If you are already using As a workaround, I have a The alternative is to not do the transform, and require that people provide those specific polyfills. That, AFAIK, seems to be the most common practice. There is the code size issue with all those helpers repeated everywhere, though, but it should not be too bad compared to a second copy of the same polyfill. |
…them being required in ES6 build (clauderic#45)
If the user of the library doesn't happen to use the babel helpers transform and the global helpers runtime, there will be a lot of
ReferenceError: babelHelpers is not defined
that cannot be fixed other than by providing the global helpers.The text was updated successfully, but these errors were encountered: