Conversation
8658437 to
6b2e449
Compare
6b2e449 to
069af3d
Compare
|
Stop spamming me, @retyui, please. |
|
Oops, sorry Rob for the notifications! I'll ease up. Hope you're having a good day otherwise |
|
I think, fundamentally, matching on a relative import without the context that we're inside the Since this only affects |
This is very unidiomatic tbh and we actually have lint rules to prevent this. Can we not know the path of the module being transformed to detect we're inside react-native? |
069af3d to
840bd3a
Compare
Yeah I don't love it either 😅. It's not idiomatic, and it'd be a bad idea in general to import via a barrel file - this is a bit of a special case as Metro transforms the import away but it is still ugly. To solve for consumers of RN other than Meta it could be a pre-publish rewrite rather than something that lives in source.
Potentially, yeah - the Another ugly option is to guess that we're inside RN based on the copyright header or Or, invent an explicit compiler hint and annotate the import. |
840bd3a to
aab6ea0
Compare
...