-
Notifications
You must be signed in to change notification settings - Fork 11
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
Publish 'raw' package for use in other apps + CLI #924
Comments
What would you expect to get as output from it? The parsing part of the codebase is modified React source. In React it has side effects, but in the code here it's stopping early at a few points so that it can return data instead. |
I was exploring how to parse the
I guess I haven't thought too deeply as to the 'best' output format.. but I guess the most basic version that would be useful would be the equivalent of what is output in the 'Raw data' section of the site currently; where I could pass in 1 or more lines of 'raw RSC wire format', and get back the parsed versions of it. |
I think I could expose createFlightResponse from @rsc-parser/core. I'll make a PR. |
There will be no guarantee of API stability for this function to start. Resolves #924
* Export `unstable_createFlightResponse` from @rsc-parser/core There will be no guarantee of API stability for this function to start. Resolves #924 * Add changeset
I think that this is the best reference for how to use it:
|
@alvarlagerlof Awesome, thanks for that!
@alvarlagerlof Skimming through the code there, it looks like it:
Will need to have a bit of a play to understand how best to use this alongside my 'extract from the |
It would be really cool if the raw functionality of this parser was able to be used as a package in other (non-web) apps, and/or if there was a CLI version of it.
The text was updated successfully, but these errors were encountered: