rsnext/test
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
..
.stats-app chore(ci): bump pnpm v8.6.11 to v8.7.1 (#54873) 2023-09-06 00:39:44 +00:00
__mocks__ [edge] bump @edge-runtime/* package suite (#49092) 2023-05-31 08:03:20 +00:00
development Remove render workers in favor of esm loader (#54813) 2023-09-11 22:17:52 +02:00
e2e Remove render workers in favor of esm loader (#54813) 2023-09-11 22:17:52 +02:00
examples feat(cli): introduce --tailwind flag (#46927) 2023-03-16 16:06:27 +01:00
integration Remove render workers in favor of esm loader (#54813) 2023-09-11 22:17:52 +02:00
lib Remove render workers in favor of esm loader (#54813) 2023-09-11 22:17:52 +02:00
production Remove render workers in favor of esm loader (#54813) 2023-09-11 22:17:52 +02:00
unit Redesign nextjs logging (#54713) 2023-09-05 11:40:00 +00:00
.gitignore ci(workflow): enable test trace upload (#51107) 2023-06-12 17:14:13 +00:00
jest-setup-after-env.ts fix(next-swc): skips client/server only checks when running with Jest to unblock testing (#54891) 2023-09-04 13:53:41 +02:00
jest.d.ts refactor smooth scroll bailout logic in app navigations (#53186) 2023-07-27 14:39:51 +00:00
readme.md refactor: split up CONTRIBUTING.md (#40515) 2022-09-16 14:54:58 -07:00
test-file.txt
turbopack-tests-manifest.js tests(next-dev): migrate basic tailwind tests for turbopack (#55118) 2023-09-11 15:44:39 +00:00

See Testing for more information on how you can run/write/debug tests for Next.js.