Skip to content

bun test: "Cannot declare an imported binding name twice: 'Fragment'." #7576

@gkiely

Description

@gkiely

What version of Bun is running?

1.0.16+800fb1290

What platform is your computer?

Darwin 21.6.0 arm64 arm

What steps can reproduce the bug?

Using a <></> and <Fragment> in the same file.

Sandbox: https://codesandbox.io/p/devbox/smoosh-wind-nwd8nq

What is the expected behavior?

Allows using both <></> and <Fragment /> syntax in the same file.

What do you see instead?

An error is reported

Additional information

Most of the time I use the shorthand fragment syntax <></> but a fragment within an array such as .map requires using a key, which the shorthand syntax does not support.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingbundlerSomething to do with the bundler

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions