mirror of
https://github.com/facebook/react.git
synced 2026-02-24 04:33:04 +00:00
This is because Webpack has a `typeof ... === 'object'` before its esm
compat test.
This is unfortunate because it means we can't have a nice error in CJS
when someone does this:
```
const fn = require('client-fn');
fn();
```
I also fixed some checks in the validator that read off the client ref.
It shouldn't do those checks against a client ref, since those now
throw.
react-server-dom-webpack
Experimental React Flight bindings for DOM using Webpack.
Use it at your own risk.