You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We'd really like to set `process.env.NODE_ENV = "production"` here, but with that,
402
+
`react/cjs/react.development.js` won't be copied anymore (as expected).
403
+
However if you `import` react from native ESM: `import {createContext} from 'react';`, it fails with
404
+
```
405
+
import {createContext} from 'react';
406
+
^^^^^^^^^^^^^
407
+
SyntaxError: Named export 'createContext' not found. The requested module 'react' is a CommonJS module, which may not support all module.exports as named exports.
408
+
CommonJS modules can always be imported via the default export, for example using:
409
+
```
410
+
This is because Node's import-cjs-from-esm feature can correctly find all named exports in
0 commit comments