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)
Showing
Please
register
or
sign in
to comment