-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
[Packager] How to configure Babel? #1451
Comments
How about having the packager look for a |
I believe I see that being mentioned elsewhere but can't seem to find it cc @ide |
Is there any |
@brentvatne were you thinking about this? https://twitter.com/amasad/status/604057791859445760 |
@ide that's the one :) thanks |
So how should we read the But copying the file does not seem like the right solution. Would be nice to figure out a way to get a hold of that function so we could just require it. Thoughts? |
@johanneslumpe would things be easier if RN depended on babel-core directly? |
@ide i believe so, but now we have @jtremback's PR. I wanted to make use of the internal function, and avoid writing custom code, as babel's |
I can expose that method if you want. |
Actually, as long as this variable is an absolute path then the |
So, |
Yep. |
Here are my findings: The packager will load I found this out by putting a syntax error in |
Yeah, you need to reset the cache when changing anything about the compiler. Any ideas of how we can incorporate .babelrc in the cache hash? |
Also should we mention |
@sebmck do you have any ideas on how to override the whitelist via babelrc? |
@amasad Babel actually has it's own cache here for performance. So changes to |
👍 That would be awesome |
+1 |
1 similar comment
👍 |
cc @martinbigio (maybe we can find a way to make this easier as we're redesigning the transformer API) |
Just trying my 1st RN app and when I run npm start I get the error:
|
Ignore, nvm forgot to use 4.1.2 |
Hello, guys! |
@tenorok You need create your .babelrc and add this babel-presenter: babel-preset-react-native
by @stvkoch |
My code is using async/await. How can I configure the Babel instance in the packager?
The text was updated successfully, but these errors were encountered: