rsnext/test/development
JJ Kasper 7d93808c43
Remove render workers in favor of esm loader (#54813)
Currently we create separate workers to isolate `pages` and `app`
routers due to differing react versions being used between the two. This
adds overhead and complexity in the rendering process which we can avoid
by leveraging an `esm-loader` similar to our `require-hook` to properly
alias `pages` router to the bundled react version to match `app` router
when both are leveraged together.

This aims to seamlessly inject the `esm-loader` by restarting the
process with the loader arg added whenever `next` is imported so that
this also works with custom-servers and fixes the issue with custom
req/res fields not working after upgrading.


x-ref: https://github.com/vercel/next.js/issues/53883
x-ref: https://github.com/vercel/next.js/issues/54288
x-ref: https://github.com/vercel/next.js/issues/54129
x-ref: https://github.com/vercel/next.js/issues/54435
closes: https://github.com/vercel/next.js/issues/54440
closes: https://github.com/vercel/next.js/issues/52702
x-ref: [slack
thread](https://vercel.slack.com/archives/C03KAR5DCKC/p1693348443932499?thread_ts=1693275196.347509&cid=C03KAR5DCKC)

---------

Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
Co-authored-by: Zack Tanner <zacktanner@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-09-11 22:17:52 +02:00
..
acceptance remove --turbo, use --experimental-turbo as --turbo (#55063) 2023-09-06 17:46:54 +00:00
acceptance-app remove --turbo, use --experimental-turbo as --turbo (#55063) 2023-09-06 17:46:54 +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 Redesign nextjs logging (#54713) 2023-09-05 11:40:00 +00:00
app-dir fix(app): enable React Strict Mode by default (#53375) 2023-08-22 20:17:17 +02: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 Remove render workers in favor of esm loader (#54813) 2023-09-11 22:17:52 +02: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 add experimental https support to next dev (#54016) 2023-08-19 01:04:06 +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 Update default moduleResolution in tsconfig.json from node to bundler (#51957) 2023-07-18 15:11:09 +00:00
middleware-warnings refactor tests for readability (#51051) 2023-06-21 19:47:21 +00:00
next-font Redesign nextjs logging (#54713) 2023-09-05 11:40:00 +00:00
pages-dir/custom-app-hmr Fix unexpected full hmr reload when editing _app (#54690) 2023-08-30 12:44:08 +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 Update default moduleResolution in tsconfig.json from node to bundler (#51957) 2023-07-18 15:11:09 +00:00
typescript-auto-install Update test config (#43661) 2022-12-03 19:49:00 -08:00
watch-config-file Remove render workers in favor of esm loader (#54813) 2023-09-11 22:17:52 +02:00
webpack-issuer-deprecation-warning fix(next): use moduleGraph.getIssuer to avoid deprecation warning (#36329) (#36330) 2022-04-21 14:14:03 +00:00