react/packages/react-server-dom-webpack/npm/client.node.js
Sebastian Markbåge 82f3684c63
Revert Node Web Streams (#33472)
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.
2025-06-06 16:26:36 -04:00

8 lines
248 B
JavaScript

'use strict';
if (process.env.NODE_ENV === 'production') {
module.exports = require('./cjs/react-server-dom-webpack-client.node.production.js');
} else {
module.exports = require('./cjs/react-server-dom-webpack-client.node.development.js');
}