rsnext/packages
Jiachi Liu 6635cc07a4
Apply react-server conditions to middleware (#65424)
### What

Reland #57448 , add react-server condition resolving and apply
server-only rules to middleware

Closes NEXT-1653
Closes NEXT-3333

### Why

Middleware as the pre-routing layer that is indended to be light-weight.
Since it's on edge runtime and only run on server but not on client, it
doesn't need to include the client react bundles. Hence we apply
`react-server` export condition, that if users import React we can only
bundle server required APIs and if users use React client hooks we can
error.
2024-05-12 14:26:37 +02:00
..
create-next-app v14.3.0-canary.58 2024-05-11 23:21:54 +00:00
eslint-config-next v14.3.0-canary.58 2024-05-11 23:21:54 +00:00
eslint-plugin-next v14.3.0-canary.58 2024-05-11 23:21:54 +00:00
font v14.3.0-canary.58 2024-05-11 23:21:54 +00:00
next Apply react-server conditions to middleware (#65424) 2024-05-12 14:26:37 +02:00
next-bundle-analyzer v14.3.0-canary.58 2024-05-11 23:21:54 +00:00
next-codemod v14.3.0-canary.58 2024-05-11 23:21:54 +00:00
next-env v14.3.0-canary.58 2024-05-11 23:21:54 +00:00
next-mdx v14.3.0-canary.58 2024-05-11 23:21:54 +00:00
next-plugin-storybook v14.3.0-canary.58 2024-05-11 23:21:54 +00:00
next-polyfill-module v14.3.0-canary.58 2024-05-11 23:21:54 +00:00
next-polyfill-nomodule v14.3.0-canary.58 2024-05-11 23:21:54 +00:00
next-swc Apply react-server conditions to middleware (#65424) 2024-05-12 14:26:37 +02:00
react-refresh-utils v14.3.0-canary.58 2024-05-11 23:21:54 +00:00
third-parties v14.3.0-canary.58 2024-05-11 23:21:54 +00:00