fix(javascript): exclude erased imports from runtime bindings (#6994)

This commit is contained in:
gensokyo-dev authored and GitHub committed 2026-10-24 11:22:23 +00:00
1 parent 0402012a95
commit be2811e414
4 files changed
+53 -27

No files matched your search

@@ -160,6 +160,11 @@ describe("TypeScript type-only module links", () => {
export type { hiddenFunction };
`);
expect(ir.bindings.map(({ name }) => name).sort()).toEqual([
"hiddenFunction",
"value",
]);
const externalLinks = ir.moduleLinks
.filter(({ specifier }) => specifier !== null)
.map(