-
Notifications
You must be signed in to change notification settings - Fork 27.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prebundle react for appDir #41337
Prebundle react for appDir #41337
Conversation
91ce27c
to
a50d7f8
Compare
Failing test suitesCommit: 19a6e5d
Expand output● app-dir static/dynamic handling › should handle dynamicParams: false correctly
● app-dir static/dynamic handling › should handle dynamicParams: true correctly
● app-dir static/dynamic handling › should navigate to static path correctly
● app-dir static/dynamic handling › should ssr dynamically when detected automatically with fetch cache option
● app-dir static/dynamic handling › should ssr dynamically when forced via config
Read more about building and testing Next.js in contributing.md.
Expand output● app-dir back button download bug › should redirect route when clicking link
Read more about building and testing Next.js in contributing.md.
Expand output● app dir prefetching › should show layout eagerly when prefetched with loading one level down
● app dir prefetching › should not have prefetch error for static path
Read more about building and testing Next.js in contributing.md.
Expand output● app dir rendering › SSR only › should run data in layout and page
● app dir rendering › SSR only › should run data in parallel
● app dir rendering › static only › should run data in layout and page
● app dir rendering › static only › should run data in parallel during development
● app dir rendering › ISR › should revalidate the page when revalidate is configured
Read more about building and testing Next.js in contributing.md. |
Since we have already bundled dependencies for server layer, so the shared deps chunk group is not needed anymore. Also changing to esm assets import with next internals for edge function and middleware build. The changes are originally from #41337, try to land them separately.
# Conflicts: # packages/next/export/worker.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
reverting #41337 Co-authored-by: JJ Kasper <[email protected]>
reverting vercel#41337 Co-authored-by: JJ Kasper <[email protected]>
Since we have already bundled dependencies for server layer, so the shared deps chunk group is not needed anymore. Also changing to esm assets import with next internals for edge function and middleware build. The changes are originally from vercel#41337, try to land them separately.
Inline a react and react-dom for app dir, when `appDir` flag is enabled opt into the built-in version for all. For server layer react, use the react share subset for server components. For all server side of react-dom usage, use the server-rendering-stub. Co-authored-by: Shu Ding <[email protected]> Co-authored-by: JJ Kasper <[email protected]>
Inline a react and react-dom for app dir, when
appDir
flag is enabled opt into the built-in version for all.For server layer react, use the react share subset for server components.
For all server side of react-dom usage, use the server-rendering-stub.