rsnext/test/e2e/app-dir/app-external/app
Jiachi Liu 3738e8ecc0
Fix react-refresh for transpiled packages (#60563)
### What

We're applying react-refresh to browser layer and inject ESM or CJS
helper based on file type. Some package from `trasnpilePackages` might
contain CJS browser bundle. And injecting ESM helper breaks them.
Actually they don't need to have fast refresh ability since they're in
`node_modules`.

### How
Skip react-refresh for transpiled packages as they're in node_modules
and won't change.

Fixes #56487 
Closes NEXT-2061
2024-01-12 21:44:41 +01:00
..
action/client Transpile all code on app browser layer (#59569) 2023-12-20 17:08:07 +01:00
async-storage build: fix externals resolution when importing from next/dist (#55269) 2023-09-12 10:26:34 +00:00
cjs/client Fix react-refresh for transpiled packages (#60563) 2024-01-12 21:44:41 +01: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 nested esm package default import resolving mismatch (#57784) 2023-10-31 00:31:23 +00: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