mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
We support streaming `multipart/form-data` in Node.js using Busboy since that's kind of the idiomatic ecosystem way for handling these stream there. There's not really anything idiomatic like that for Edge that's universal yet. This adds a version that's basically just `AsyncIterable.from(formData)`. It could also be a `ReadableStream` of those entries since those are also `AsyncIterable`. I imagine that in the future we might add one from a binary `ReadableStream` that does the parsing built-in.
19 lines
733 B
JavaScript
19 lines
733 B
JavaScript
'use strict';
|
|
|
|
var s;
|
|
if (process.env.NODE_ENV === 'production') {
|
|
s = require('./cjs/react-server-dom-webpack-server.edge.production.js');
|
|
} else {
|
|
s = require('./cjs/react-server-dom-webpack-server.edge.development.js');
|
|
}
|
|
|
|
exports.renderToReadableStream = s.renderToReadableStream;
|
|
exports.decodeReply = s.decodeReply;
|
|
exports.decodeReplyFromAsyncIterable = s.decodeReplyFromAsyncIterable;
|
|
exports.decodeAction = s.decodeAction;
|
|
exports.decodeFormState = s.decodeFormState;
|
|
exports.registerServerReference = s.registerServerReference;
|
|
exports.registerClientReference = s.registerClientReference;
|
|
exports.createClientModuleProxy = s.createClientModuleProxy;
|
|
exports.createTemporaryReferenceSet = s.createTemporaryReferenceSet;
|