mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
Reverts #33457, #33456 and #33442. There are too many issues with wrappers, lazy init, stateful modules, duplicate instantiation of async_hooks and duplication of code. Instead, we'll just do a wrapper polyfill that uses Node Streams internally. I kept the client indirection files that I added for consistency with the server though.
19 lines
619 B
JavaScript
19 lines
619 B
JavaScript
'use strict';
|
|
|
|
var l, s;
|
|
if (process.env.NODE_ENV === 'production') {
|
|
l = require('./cjs/react-dom-server-legacy.node.production.js');
|
|
s = require('./cjs/react-dom-server.node.production.js');
|
|
} else {
|
|
l = require('./cjs/react-dom-server-legacy.node.development.js');
|
|
s = require('./cjs/react-dom-server.node.development.js');
|
|
}
|
|
|
|
exports.version = l.version;
|
|
exports.renderToString = l.renderToString;
|
|
exports.renderToStaticMarkup = l.renderToStaticMarkup;
|
|
exports.renderToPipeableStream = s.renderToPipeableStream;
|
|
if (s.resumeToPipeableStream) {
|
|
exports.resumeToPipeableStream = s.resumeToPipeableStream;
|
|
}
|