rsnext/test/integration/react-streaming-and-server-components
Jiachi Liu 4e8e191a6e
RSC: handle commonjs in flight loader (#35563)
We need to handle cjs cases for client/server components when they're compiled to commonjs in some cases.
e.g. if there's an internal `_app.server.js` in nextjs, the assets in the dist files are compiled to cjs by swc. Or any 3rd party libraries are consumed could be cjs only.

### How it works

* Detect the source file is ESM or CJS first by detect if there's any ESM import/export
* Append the new exports or collect exports info based on the module type
2022-03-25 21:17:33 +00:00
..
app RSC: handle commonjs in flight loader (#35563) 2022-03-25 21:17:33 +00:00
test RSC: handle commonjs in flight loader (#35563) 2022-03-25 21:17:33 +00:00
unsupported-native-module Revert "Make concurrent features independent from the global runtime option" (#35405) 2022-03-17 16:31:46 +00:00