srcbookdev / srcbook

TypeScript-centric app development platform
https://srcbook.com
Apache License 2.0
2.58k stars 101 forks source link

Re-introduce streaming with fixed bugs #433

Closed nichochar closed 3 weeks ago

nichochar commented 3 weeks ago

Fixed up a few bugs. This thing is very stateful and even though it didn't break during some basic testing, I would not be surprised to find more bugs.

The bugs often have to do with the difficulty of parsing CDATA vs non CDATA sections, how we manage the currentTag stack, and generally mutability of the buffer.

I have ideas on how we can improve it when we reimplement it later.

This PR also removes the "create a version" mechanism in the frontend when there is only an npm install command.

nichochar commented 3 weeks ago

Rebase broke this. Making a new PR