rsnext/packages
Jiachi Liu 3fa9cb7bf7
Fix mixed exports in server component with barrel optimization (#64894)
### What

* Remove the change added in #64467, but still kept tests.
* Add more tests for mixed imports (component and function) from shared
component with `optimizePackageImports`

### Why

The fix in #64467 was not correct, as mixing `export *` with `"use
client"` should error if Next.js detect it properly.
When there's mixed exports, that a shared function will become a client
reference if the target file inherits the client boundary.

The original issue #64467 fixed was actually related to tree-shaking,
which is fixed in #64681.

Closes NEXT-3197
2024-04-23 09:57:49 +02:00
..
create-next-app v14.3.0-canary.18 2024-04-22 23:22:37 +00:00
eslint-config-next v14.3.0-canary.18 2024-04-22 23:22:37 +00:00
eslint-plugin-next v14.3.0-canary.18 2024-04-22 23:22:37 +00:00
font v14.3.0-canary.18 2024-04-22 23:22:37 +00:00
next Fix mixed exports in server component with barrel optimization (#64894) 2024-04-23 09:57:49 +02:00
next-bundle-analyzer v14.3.0-canary.18 2024-04-22 23:22:37 +00:00
next-codemod v14.3.0-canary.18 2024-04-22 23:22:37 +00:00
next-env v14.3.0-canary.18 2024-04-22 23:22:37 +00:00
next-mdx v14.3.0-canary.18 2024-04-22 23:22:37 +00:00
next-plugin-storybook v14.3.0-canary.18 2024-04-22 23:22:37 +00:00
next-polyfill-module v14.3.0-canary.18 2024-04-22 23:22:37 +00:00
next-polyfill-nomodule v14.3.0-canary.18 2024-04-22 23:22:37 +00:00
next-swc feat(next-core): support parsing matcher config object (#64678) 2024-04-23 09:55:24 +02:00
react-refresh-utils v14.3.0-canary.18 2024-04-22 23:22:37 +00:00
third-parties v14.3.0-canary.18 2024-04-22 23:22:37 +00:00