-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
The code that parcel inserts is not processed with babel #131
Comments
If you use |
No, 'cause the builtins are inlined as they appear in their files. For instance, they aren't transformed along with everything else, so this arrow function for instance, stays an arrow |
devongovett
pushed a commit
that referenced
this issue
Dec 9, 2017
devongovett
pushed a commit
that referenced
this issue
Oct 15, 2018
devongovett
pushed a commit
that referenced
this issue
Oct 15, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐛/🙋, could go either way.
I think this is related to #8.
if i have this
.babelrc
:and i have this code:
and i do
parcel build index.js --no-minify
, i get this handy guy in the code:the
let
here is problematic in the environment i'm building for, and testing on.Similarly, when using
parcel index.html
, the websocket code generating for hot reloading has an arrow function in it.Possible solution: transpile these generated snippets with the current babel config
The text was updated successfully, but these errors were encountered: