You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b90cb59
Browse filesBrowse the repository at this point in the historyBrowse files
fix(cjs): flag exports used through a CommonJS namespace re-export (#22791)
* fix(cjs): flag exports used through a CommonJS namespace re-export
A namespace re-export's nested exports info redirects to the required
module's exports, so marking an export used through it never queued that
module, leaving its self-references unused.
Fixes#22788
* test(cjs): cover chained and side-effectful namespace re-exports
Both failed with "Self-reference dependency has unused export name" before
the fix; run the case with and without module concatenation.
* test(cjs): drop the concatenation variant of the namespace re-export case
CommonJS modules concatenate only with `concatenateModules.commonjs` from
an ESM root, so both variants emitted identical bundles.
0 commit comments