mirror of
https://github.com/facebook/react.git
synced 2026-02-27 03:07:57 +00:00
Use the Blob constructor + append with filename instead of File constructor. Node.js doesn't expose a global File constructor but does support it in this form. Queue fields until we get the 'end' event from the previous file. We rely on previous files being available by the time a field is resolved. However, since the 'end' event in Readable is fired after two micro-tasks, these are not resolved in order. I use a queue of the fields while we're still waiting on files to finish. This still doesn't resolve files and fields in order relative to each other but that doesn't matter for our usage.
react-server-dom-webpack
Experimental React Flight bindings for DOM using Webpack.
Use it at your own risk.