-
Notifications
You must be signed in to change notification settings - Fork 27.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bundle the installed react for middleware (#65811)
### What Let `middleware` and `instrumentation` apply `react-server` exports condition names first. When bundle the react and react-dom, bundle the installed version instead of the built-in version. Renamed "app" group for webpack layers to "bundled", which indicates it will bundle all the dependencies. ### Why Middleware and instrument are sort of isolated from app router and pages router, if they're using react should pick up from the installed version. Since they're in server layer so they only need to bundle the `react-server` conditions. x-ref: [slack thread](https://vercel.slack.com/archives/C046HAU4H7F/p1715790385748169)
- Loading branch information
Showing
6 changed files
with
50 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters