dillon1000/react
Commit
Browse files Revert the outer module object to an object (#26093)
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.Changed paths4 files
First-parent comparisonpackages/react-server-dom-webpack/src/ReactFlightWebpackNodeRegister.js ModifiedM packages/react-server-dom-webpack/src/__tests__/ReactFlightDOM-test.js ModifiedM packages/react/src/ReactElementValidator.js ModifiedM packages/react/src/jsx/ReactJSXElementValidator.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…