Bumping Babel to better support TypeScript
See original GitHub issueDo you want to request a feature or report a bug? feature
What is the current behavior?
Metro, and by extension React Native, ships with Babel 7.0.0-beta.47
.
What is the expected behavior?
I would love for Babel to be bumped to at least version 7.0.0-beta.48
to get some much-needed fixes for TypeScript. My end goal is to be able to use Babel to transpile my TypeScript files in my React Native project.
Currently, this doesn’t seem possible since the Flow plugin is required to be loaded by React Native, and the TypeScript plugin cannot be active at the same time as Flow. In beta.48
the TypeScript preset was updated to only run on .ts
and .tsx
files and I think that that would solve the problem of both being loaded.
I tried starting the work on this myself but ran into unexpected trouble and I’m at a loss for how to troubleshoot it. For some reason the basic_bundle-test
is running into a “RangeError: Maximum call stack size exceeded” error, after bumping all babel dependencies from beta.47 to beta.48.
Would love some help on continuing this ☺️
Issue Analytics
- State:
- Created 5 years ago
- Reactions:5
- Comments:6 (1 by maintainers)
Top GitHub Comments
Actually @rubennorte is doing this right now 😃
FYI Metro 42.2 depends on Babel 7 beta 54.
Closing this ticket as that seems to resolve it 😃