rsnext/test/development
Shu Ding 6790004d79
Fix barrel optimization to ignore layers (#59254)
Fixes #57624. The recent issue was an unexpected side effect caused by
305bb01506,
which only affects specific packages like `@mui/material`.

The problem was that the entry file of `@mui/material` has `"use
client"` at top, which affects the compilation result to output
reference info only (when on the RSC layer), instead of keeping the
original export statements. And the fix here is to ignore all layer info
and React specific transforms here, as barrel optimization isn't related
to all these framework features at all. To keep all directives
unchanged, the SWC transform needs to parse and pass that info to the
Webpack loader.

This PR adds a test to ensure that `@mui/material` is working as
expected (less than 1500 modules compiled). Without this feature it'll
be ~2400 modules.

Closes NEXT-1793, closes NEXT-1762.
2023-12-06 01:17:31 +09:00
..
acceptance Turbopack: Align some "Module not found" errors with webpack (#58518) 2023-11-30 08:34:56 -08:00
acceptance-app Turbopack: Align some "Module not found" errors with webpack (#58518) 2023-11-30 08:34:56 -08:00
api-cors-with-rewrite fix(#11930): rewritten api routes can correctly handle cors in dev mode (#38937) 2022-07-29 21:39:43 -05:00
app-dir refactor: Add lightningcss mode for turbopack-css (#58471) 2023-11-20 18:09:36 +01:00
app-hmr remove HMR polling in favor of more targeted events (#54406) 2023-08-23 16:25:57 -07:00
app-render-error-log Remove experimental config from create-next-app (#49241) 2023-05-05 00:22:28 -07:00
basic Fix barrel optimization to ignore layers (#59254) 2023-12-06 01:17:31 +09:00
client-dev-overlay fix: error overlay hijacking application focus (safari) (#53693) 2023-08-08 21:45:03 +02:00
correct-tsconfig-defaults chore(test): fix flaky tsconfig.json test (#53132) 2023-07-24 14:33:55 -07:00
dotenv-default-expansion Ensure next.url is used instead of next.appPort (#44163) 2022-12-19 13:29:50 -08:00
experimental-https-server test(integration): fix --turbo tests fixture setup (#55293) 2023-09-18 17:46:07 +00:00
gssp-notfound Ensure next.url is used instead of next.appPort (#44163) 2022-12-19 13:29:50 -08:00
jsconfig-path-reloading make tests more stable (#58765) 2023-11-23 13:48:08 +01:00
middleware-errors Polish error icon for error log (#55618) 2023-09-20 14:56:34 +00:00
middleware-warnings refactor tests for readability (#51051) 2023-06-21 19:47:21 +00:00
next-font Logging improvements (#55298) 2023-09-13 15:27:02 +02:00
pages-dir Move client-navigation test to test/development (#55888) 2023-09-24 11:38:53 +02:00
project-directory-with-styled-jsx-suffix fix: allow user directory with styled-jsx prefix in next dev (#41484) 2022-10-19 19:01:48 +00:00
repeated-dev-edits Add test checking that repeated edits won't cause hydration issues (#44189) 2022-12-21 14:17:50 +01:00
tsconfig-path-reloading make tests more stable (#58765) 2023-11-23 13:48:08 +01:00
typescript-auto-install Remove installCommand on typescript-auto-install and pnpm-support (#58039) 2023-11-05 18:32:10 +01:00
watch-config-file Logging improvements (#55298) 2023-09-13 15:27:02 +02:00
webpack-issuer-deprecation-warning More Turbopack fixes (#56275) 2023-10-02 09:42:32 +02:00