rsnext/packages
Jiachi Liu cb8fb3291a
Fix client boundary inheritance for barrel optimization (#64467)
### What

Inherit the client boudaries from the found matched target in load
barrel

### Why
The root cause with the barrel transform, we missed the client boundary
directive during the transform.
Since the new version of mui's case looks like this:

Import path
page.js (server module) -> `<module>/index.js` (shared module) ->
`<module/subpath>/index.js` (client module) ->
`<module/subpath/sub-module.js> (client module)

After our transform, we lost the `"use client"` which causes the
mismatch of the transform:

In `rsc` layer: the file pointing to the sub module entry
(`<module/subpath>/index.js`), but without the client boundary.


Fixes #64369 
Closes NEXT-3101
2024-04-14 23:36:20 +02:00
..
create-next-app v14.2.1-canary.4 2024-04-13 23:23:45 +00:00
eslint-config-next v14.2.1-canary.4 2024-04-13 23:23:45 +00:00
eslint-plugin-next v14.2.1-canary.4 2024-04-13 23:23:45 +00:00
font v14.2.1-canary.4 2024-04-13 23:23:45 +00:00
next Fix client boundary inheritance for barrel optimization (#64467) 2024-04-14 23:36:20 +02:00
next-bundle-analyzer v14.2.1-canary.4 2024-04-13 23:23:45 +00:00
next-codemod v14.2.1-canary.4 2024-04-13 23:23:45 +00:00
next-env v14.2.1-canary.4 2024-04-13 23:23:45 +00:00
next-mdx v14.2.1-canary.4 2024-04-13 23:23:45 +00:00
next-plugin-storybook v14.2.1-canary.4 2024-04-13 23:23:45 +00:00
next-polyfill-module v14.2.1-canary.4 2024-04-13 23:23:45 +00:00
next-polyfill-nomodule v14.2.1-canary.4 2024-04-13 23:23:45 +00:00
next-swc v14.2.1-canary.4 2024-04-13 23:23:45 +00:00
react-refresh-utils v14.2.1-canary.4 2024-04-13 23:23:45 +00:00
third-parties v14.2.1-canary.4 2024-04-13 23:23:45 +00:00