-
Notifications
You must be signed in to change notification settings - Fork 47
Added support for RN >= 0.52 #37
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
Conversation
haha thanks. I'll test this now. |
This is suppose to be there I think, but I'm getting other errors now that might be related to changes in metro and source maps handling in 0.52. So hold of merge and release. I'm getting this crash now:
half-way though the bundling-process. |
Yepp @ds300 . Got it to run on 0.52. The babelMap comes in as undefined, making the packager crash.
But the fix in this PR should be merged, and I leave the rest around sourceMaps to you (You might have a better idea on how to trace that change.) |
Ok thanks for the initial work. I just had a quick look, and it seems that the upstream transformer has changed significantly. Will have to figure out how to support it. |
The upstream transformer only returns the AST now, no source map. On the surface it looks like we won't be able to support source mapping from 0.52 onwards without submitting a PR to metro. |
alternatively, I could try using babel 7 with the typescript support. |
I think there's a few things that babel's typescript parser doesn't support. You probably already know this, but just wanted to throw that out there as a heads up. Lemme know if there's anything I can do to help including: cheering, buying beer, testing, researching, whatever. |
Heh, thanks Steve 😁 I didn't know that! I'll check what the latest is on
babel 7.
…On 8 Jan 2018 17:37, "Steve Kellock" ***@***.***> wrote:
I think there's a few things that babel's typescript parser doesn't
support. const enum and namespaces. (caveat: my knowledge is about a
month old, and I haven't kept up to date on babel 7 + ts).
You probably already know this, but just wanted to throw that out there as
a heads up.
Lemme know if there's anything I can do to help including: cheering,
buying beer, testing, researching, whatever.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#37 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABL1qee8KLKxSSPkUnoMGDId0Ooph8b9ks5tIlJugaJpZM4RWhKL>
.
|
Dropping sourceMap support temporally sounds like a good idea for a quick fix to support RN 0.52. Later on it can be restored. |
Source mapping is now working again as of 1.1.7 🎉 |
I love you. |
Steve, I thought we said we'd keep our love hidden 😊 |
Sorry, i get too emotional when people try to take my TypeScript away. |
Sigh