Closed etrepum closed 2 weeks ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
lexical | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 1, 2024 11:15pm |
lexical-playground | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 1, 2024 11:15pm |
I'll take a look at that approach and write some unit tests
Description
Follow-up to #5995, while this fix worked it was not as clean as it should be and probably shouldn't pass flow type checks if it was analyzed. I did a little more digging and I found a more correct incantation, but it could probably still use some improvement if there is a hermes-transform expert around.
Test plan
Before
node ./scripts/www/rewriteImports.js rewrites flow files correctly (using sketchy code)
After
node ./scripts/www/rewriteImports.js rewrites flow files correctly (using slightly better code)