Compare commits

...

3 Commits

Author SHA1 Message Date
pfg
b20a1489e5 flags 2025-11-04 17:15:16 -08:00
pfg
8b2516c6ad , 2025-11-04 17:13:11 -08:00
pfg
8e62e4659b add reproduction 2025-11-04 17:11:44 -08:00
3 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1 @@
export { b } from "./b.fixture.ts";

View File

@@ -0,0 +1,3 @@
export function b() {
return "b";
}

View File

@@ -0,0 +1,16 @@
import * as fs from "fs/promises";
test("no double export", async () => {
await fs.rm(import.meta.dir + "/dist", { recursive: true, force: true });
await Bun.build({
entrypoints: [import.meta.dir + "/a.fixture.ts", import.meta.dir + "/b.fixture.ts"],
splitting: true,
outdir: import.meta.dir + "/dist",
});
// @ts-ignore
const { b } = await import("./dist/a.fixture.js");
expect(b()).toBe("b");
// should not throw
});