Skip to content

Bundler Duplicate Exports #5344

@jacob-ebey

Description

@jacob-ebey

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingbundlerSomething to do with the bundlernice-reproAn unusually helpful reproduction is provided

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions