rsnext/test/e2e/app-dir/app-external/app
Jiachi Liu cfedc529c7
Fix extra swc optimizer applied to node_modules in browser layer (#62051)
### What

Disable swc transform optimizer for node_modules in browser layer of app
router bundles

Fixes #61858
Fixes #60644 
Fixes #60920
Fixes #61740
Closes NEXT-2418

### Why

In browser there could be not only one runtime, it could have both js
worker and browser. In js worker the `typeof window` is not as same as
in browser, so disabling the swc optimizer which will replace the code.
Leave the condition as it as.
2024-02-14 21:58:39 +01:00
..
action/client Transpile all code on app browser layer (#59569) 2023-12-20 17:08:07 +01:00
app-routes Fix next/server api alias for ESM pkg (#61721) 2024-02-06 16:59:24 +00:00
async-storage build: fix externals resolution when importing from next/dist (#55269) 2023-09-12 10:26:34 +00:00
browser Fix extra swc optimizer applied to node_modules in browser layer (#62051) 2024-02-14 21:58:39 +01:00
cjs Fix next/server api alias for ESM pkg (#61721) 2024-02-06 16:59:24 +00:00
client-dep Fix package resolution issue in app dir (#43349) 2022-11-25 01:19:21 +00:00
css Eagerly bundle external ESM dependencies for pages (#42741) 2022-11-10 18:11:38 +01:00
esm Fix attempted import error for react (#61791) 2024-02-08 00:57:43 +01:00
esm-client-ref Fix client boundary defined in a module (#46171) 2023-02-21 15:20:45 +00:00
external-imports Fix react-refresh for transpiled packages (#60563) 2024-01-12 21:44:41 +01:00
font Eagerly bundle external ESM dependencies for pages (#42741) 2022-11-10 18:11:38 +01:00
mixed Fix mixed module swc compilation for app router (#58967) 2023-12-01 15:23:43 +01:00
optout/action Fix server output bundling packages module resolving (#59369) 2023-12-07 18:11:11 +01:00
react-server Prefer module over main on main fields for app router server compiler (#56960) 2023-10-19 16:06:47 +00:00
shared-esm-dep Eagerly bundle external ESM dependencies for pages (#42741) 2022-11-10 18:11:38 +01:00
wildcard Fix conflict when re-exporting multiple Client References (#49468) 2023-05-16 12:35:12 +02:00
layout.js Eagerly bundle external ESM dependencies for pages (#42741) 2022-11-10 18:11:38 +01:00