mirror of
https://github.com/hanzoai/react.git
synced 2026-09-24 17:02:27 +00: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.
13 lines
361 B
JavaScript
13 lines
361 B
JavaScript
'use strict';
|
|
|
|
var s;
|
|
if (process.env.NODE_ENV === 'production') {
|
|
s = require('./cjs/react-dom-server.node.production.js');
|
|
} else {
|
|
s = require('./cjs/react-dom-server.node.development.js');
|
|
}
|
|
|
|
exports.version = s.version;
|
|
exports.prerenderToNodeStream = s.prerenderToNodeStream;
|
|
exports.resumeAndPrerenderToNodeStream = s.resumeAndPrerenderToNodeStream;
|