Skip to content

fix: minimal build reexports report no local name - #246

Merged
guybedford merged 1 commit into
mainfrom
minimal-reexport-ln
Sep 7, 2026
Merged

guybedford merged 1 commit into
mainfrom
minimal-reexport-ln

Conversation

@guybedford

Copy link
Copy Markdown
Owner

This reverts the minimal build change from #240 that reported the clause name of export { a as b } from 'c' as ln.

a is an imported name, not a local binding, and the minimal build carries no export record type, so ln: 'a' on a reexport was indistinguishable from a local export { a as b }. The minimal wasm erases the clause name again and the record keeps the v2 shape:

// export { a as b } from 'c'
{ n: 'b', ln: undefined, ls: -1, le: -1 }

The full build is unchanged: reexports report importName / importNameStart / importNameEnd there. The shared test expectations, the minimal ExportSpecifier docs, and the README minimal example and "Upgrading from v2" list are updated to match.

`export { a as b } from 'c'` names an imported binding, not a local one, and
the minimal build has no record type to tell the two apart, so reporting `a`
as `ln` made a reexport indistinguishable from a local `export { a as b }`.
The minimal wasm erases the clause name again, restoring the v2 shape:
`ln` undefined with `ls` / `le` of -1.
@guybedford
guybedford merged commit ee0c0ea into main Sep 7, 2026
3 checks passed
@guybedford
guybedford deleted the minimal-reexport-ln branch September 7, 2026 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant