-
Notifications
You must be signed in to change notification settings - Fork 4
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
Allow configuration of ES6 transpilation and polyfills #4
Labels
Comments
-b, --babelify option added. @indianscout you mind testing (I only did super simple test). If all looks good, I will publish change to npm. If you find any issue, you mind fixing and making pull request? |
I'll do some more testing. THX for the quick fix :-) |
Test with -b and --babelify option looks good (also with relative path):
THX 👍 |
awesome. pushed update to npm. 0.0.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The current code does only browserify the module without polyfills and transpilation of recent JS/ES6 features. This could easily be achieved by providing the according babelify options browserify().transform(). The following quick and dirty workaround in index.js, line 42 works in my case but is very specific for my use case:
The best would be to include an cli option (-b, --babelify) with a json file containing the babelify configuration (similar to -e).
The text was updated successfully, but these errors were encountered: