What version of Bun is running?
1.0.1
What platform is your computer?
Darwin 22.5.0 arm64 arm
What steps can reproduce the bug?
Double exports seems to arise when one entrypoint is re-exporting from another entrypoint.
A reproduction can be found here: https://github.com/jacob-ebey/bun-bug-reproductions/tree/main/bugs/bundler-double-exports
What is the expected behavior?
Entrypoint output is a valid ES module.
What do you see instead?
Duplicate exports in the dist/entry-b.js that ends up looking something like:
function b() {
}
export {
b
};
export { b };
Additional information
I'm going to be using https://github.com/jacob-ebey/bun-bug-reproductions/ as a general bug-reproduction location for anything else I run across.
What version of Bun is running?
1.0.1
What platform is your computer?
Darwin 22.5.0 arm64 arm
What steps can reproduce the bug?
Double exports seems to arise when one entrypoint is re-exporting from another entrypoint.
A reproduction can be found here: https://github.com/jacob-ebey/bun-bug-reproductions/tree/main/bugs/bundler-double-exports
What is the expected behavior?
Entrypoint output is a valid ES module.
What do you see instead?
Duplicate exports in the
dist/entry-b.jsthat ends up looking something like:Additional information
I'm going to be using https://github.com/jacob-ebey/bun-bug-reproductions/ as a general bug-reproduction location for anything else I run across.