mirror of
https://github.com/morluto/rea.git
synced 2026-11-11 01:13:39 +00:00
fix(javascript): exclude erased imports from runtime bindings (#6994)
This commit is contained in:
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(
|
||||
|
||||
Reference in new issue
Block a user