rsnext/test/development
Shu Ding b5f7f84485
Refactor require hooks (#48506)
Same purpose as #48297, but without the React channel branching logic to
make it easier to land. Since we have #48478 reverted, we only need to
consider `pages` and `app` inside the require hook.

> This PR aims to improve the current require hook by implementing two
key changes. Firstly, it ensures that the initialization occurs at the
top of the module level for correctness. Secondly, we now set the
NEXT_PREBUNDLED_REACT environment variable at the process level to
ensure that we don't mix the two types of rendering processes and we
always resolve the correct React package.
>
> These improvements are made possible by the changes introduced in PR
https://github.com/vercel/next.js/pull/47857.
> 
> Closes [NEXT-231](https://linear.app/vercel/issue/NEXT-231).

This will likely fix #45258 too.

---------

Co-authored-by: JJ Kasper <jj@jjsweb.site>
2023-04-22 00:19:51 +02:00
..
acceptance Improve RSC compiler error in external module (#46953) 2023-03-09 12:27:57 -08:00
acceptance-app remove amp error in app dir (#48620) 2023-04-20 14:18:57 +00: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
api-route-errors Resolve RSC / HTML rendering errors in error overlay (#43332) 2022-11-25 13:06:42 +01:00
app-dir/multiple-compiles-single-route Don't build pages before middleware (#48339) 2023-04-18 12:28:49 +02:00
app-hmr Fix app client child entry not being disposed when deleting the file (#46583) 2023-02-28 23:32:03 +00:00
app-render-error-log Refactor require hooks (#48506) 2023-04-22 00:19:51 +02:00
basic feat(turbopack): support initial compiler.emotion / compiler.styledComponents flag (#47991) 2023-04-12 22:05:18 +02:00
client-dev-overlay Allowing hiding the ReactDevOverlay (#37417) 2022-06-06 14:21:53 -04:00
correct-tsconfig-defaults Update flakey tsconfig test (#40105) 2022-08-30 12:31:38 -05:00
dotenv-default-expansion Ensure next.url is used instead of next.appPort (#44163) 2022-12-19 13:29:50 -08:00
gssp-notfound Ensure next.url is used instead of next.appPort (#44163) 2022-12-19 13:29:50 -08:00
jsconfig-path-reloading Upgrade typescript to 4.8.2 (#39979) 2022-08-29 16:56:02 +00:00
middleware-warnings Enable allowMiddlewareResponseBody by default (#44224) 2022-12-21 18:40:58 +00:00
next-font Add initial separated route resolving (#47208) 2023-04-02 15:17:15 +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 Upgrade typescript to 4.8.2 (#39979) 2022-08-29 16:56:02 +00:00
typescript-auto-install Update test config (#43661) 2022-12-03 19:49:00 -08:00
watch-config-file Auto-restart dev server when next.config.js changes (#47912) 2023-04-05 18:17:54 +00:00
webpack-issuer-deprecation-warning fix(next): use moduleGraph.getIssuer to avoid deprecation warning (#36329) (#36330) 2022-04-21 14:14:03 +00:00