Closed
Description
Repro:
// a.ts
export const a = 1
// b.ts
export { a } from './a'
esbuild a.ts b.ts --outdir=dist--format=esm --bundle --splitting
Output:
a.js
:
import {
a
} from "./chunk.xL6KqlYO.js";
// a.ts
export {
a
};
b.js
:
import "./chunk.xL6KqlYO.js";
// ↑↑ ERROR: should be `import { a } from "./chunk.xL6KqlYO.js";`
// b.ts
export {
a
};
chunk.xL6KqlYO.js
:
// a.ts
const a = 1;
export {
a
};
Metadata
Assignees
Labels
No labels
Activity