rsnext/test/production
Jiachi Liu fa30290353
Fix cjs client components tree-shaking (#64558)
## What

Determine if the client module is a CJS file and `default` export is
imported, then we include the whole module instead of using webpack
magic comments to only extract `default` export.

## Why

Unlike ESM, The `default` export of CJS module is not just `.default`
property, we need to include `__esModule` mark along with `default`
export to make it function properly with React client module proxy


Fixes #64518
Closes NEXT-3119
2024-04-16 15:06:42 +02:00
..
app-dir Fix cjs client components tree-shaking (#64558) 2024-04-16 15:06:42 +02:00
app-dir-edge-runtime-with-wasm Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
app-dir-hide-suppressed-error-during-next-export Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
app-dir-prefetch-non-iso-url Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
app-dir-prevent-304-caching Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
bfcache-routing Improve handling of failed nextBuild() calls in test suite (#63717) 2024-03-27 19:29:16 +01:00
build-spinners Use consistent name for App Router tests (#56352) 2023-10-06 11:06:06 +02:00
ci-missing-typescript-deps Add types as a default dependency into tests (#44140) 2022-12-19 19:05:53 +01:00
custom-error-500 Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
custom-server server: bundle vendored react (#55362) 2023-09-15 19:49:39 +00:00
dependencies-can-use-env-vars-in-middlewares Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
deployment-id-handling feat: add deploymentId config (#63198) 2024-03-13 16:46:50 -04:00
disable-fallback-polyfills Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
edge-config-validations Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
edge-dynamic-code-eval fix(log): improve error when dynamic code eval is disallowed (#62999) 2024-03-12 23:31:32 +01:00
edge-runtime-is-addressable Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
emit-decorator-metadata Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
enoent-during-require Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
error-hydration Skip client-side data-fetching after ssr error (#51377) 2024-02-07 17:24:26 -08:00
escheck-output Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
eslint-plugin-deps Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
export chore: update ESLint and plugins to latest (#61544) 2024-02-01 20:06:02 -05:00
exported-runtimes-value-validation Revert "refactor(analysis): rust based page-static-info, deprecate js parse interface in next-swc" (#62838) 2024-03-04 21:43:56 +00:00
fallback-export-error Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
fatal-render-errror Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
generate-middleware-source-maps Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
graceful-shutdown Remove Turbopack test skip for scss test (#63649) 2024-03-24 20:04:12 +01:00
handle-already-sent-response Redesign nextjs logging (#54713) 2023-09-05 11:40:00 +00:00
ipc-forbidden-headers add "expect" to list of forbidden IPC headers (#53947) 2023-08-12 19:38:38 +00:00
jest Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
middleware-typescript fix(ts): match MiddlewareConfig with documentation (#61718) 2024-02-07 23:32:03 +00:00
next-font Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
pages-dir/production Use local AMP validator to reduce test flakiness (#63838) 2024-03-28 20:25:35 +00:00
pnpm-support Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
postcss-plugin-config-as-string Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
prerender-prefetch Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
reading-request-body-in-middleware Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
sharp-basic Fix recursive ignoring case in build traces (#60740) 2024-01-16 14:11:17 -08:00
standalone-mode Stop using baseUrl in root tsconfig (#64117) 2024-04-09 00:25:43 +02:00
supports-module-resolution-nodenext Fix failing TS test from new release (#54523) 2023-08-24 11:36:38 -07:00
terser-class-static-blocks chore: Update terser to v5.27.0 (#61068) 2024-01-24 08:42:08 +01:00
transpile-packages Remove lodash from external packages list (#63601) 2024-03-22 10:56:38 +00:00
typescript-basic Add typechecking test for all entrypoints (#64478) 2024-04-15 17:52:44 +02:00