Make use of parser code from React source
Closed this issue · 0 comments
alvarlagerlof commented
Problem
The parser in this codebase is currently reverse-engineered. It can handle some things, but not the full RSC format. When there are rows that it cannot handle, the UI is not capable to gracefully failing either.
Proposed solution
tbd, ideas:
- Copy the react parser code, convert to TS, remove things that are not useful
- Compile flow down to JS
- Create a patch to apply every time it updates