rsnext/packages
Shu Ding b28cd21ee5
Improve client boundary source type detection (#47532)Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Currently in a client boundary file, we only explicitly export
individual fields in ESM (`export foo`) when the source type is
`module`. However in most of the time SWC gives the `auto` source type.
This PR improves the type detection a bit so if it's `auto` and we do
see ESM exports collected, we assume it's ESM and re-export these
fields.

Fixes #41940, fix NEXT-796
([link](https://linear.app/vercel/issue/NEXT-796)).

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-03-27 19:16:23 +02:00
..
create-next-app v13.2.5-canary.19 2023-03-27 07:05:28 +00:00
eslint-config-next v13.2.5-canary.19 2023-03-27 07:05:28 +00:00
eslint-plugin-next v13.2.5-canary.19 2023-03-27 07:05:28 +00:00
font v13.2.5-canary.19 2023-03-27 07:05:28 +00:00
next Improve client boundary source type detection (#47532)Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> 2023-03-27 19:16:23 +02:00
next-bundle-analyzer v13.2.5-canary.19 2023-03-27 07:05:28 +00:00
next-codemod v13.2.5-canary.19 2023-03-27 07:05:28 +00:00
next-env v13.2.5-canary.19 2023-03-27 07:05:28 +00:00
next-mdx v13.2.5-canary.19 2023-03-27 07:05:28 +00:00
next-plugin-storybook v13.2.5-canary.19 2023-03-27 07:05:28 +00:00
next-polyfill-module v13.2.5-canary.19 2023-03-27 07:05:28 +00:00
next-polyfill-nomodule v13.2.5-canary.19 2023-03-27 07:05:28 +00:00
next-swc Improve client boundary source type detection (#47532)Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> 2023-03-27 19:16:23 +02:00
react-dev-overlay v13.2.5-canary.19 2023-03-27 07:05:28 +00:00
react-refresh-utils v13.2.5-canary.19 2023-03-27 07:05:28 +00:00