We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.0.4+745b6b94ee56cad24d475799690cc9a89957d15b
Darwin 23.0.0 arm64 arm
See this repo: https://github.com/cornedor/bun-incorrect-imports
index.ts will bundle files from two directories using splitting: true. In build/client/Client.js you can see an invalid import.
splitting: true
build/client/Client.js
Import to a file in the same directory looks like this:
import { socket } from "./Socket.js";
./ is missing from the import path.
./
import { socket } from "Socket.js";
This only happens when that JS file also includes something from another directory.
This might be related to #5344, Socket.js also has a duplicate export.
When I remove the usage of the imported variable from the file, but keep the import, then this is generated:
import"Socket.js";
Note the missing space after import.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What version of Bun is running?
1.0.4+745b6b94ee56cad24d475799690cc9a89957d15b
What platform is your computer?
Darwin 23.0.0 arm64 arm
What steps can reproduce the bug?
See this repo: https://github.com/cornedor/bun-incorrect-imports
index.ts will bundle files from two directories using
splitting: true
. Inbuild/client/Client.js
you can see an invalid import.What is the expected behavior?
Import to a file in the same directory looks like this:
What do you see instead?
./
is missing from the import path.Additional information
This only happens when that JS file also includes something from another directory.
This might be related to #5344, Socket.js also has a duplicate export.
When I remove the usage of the imported variable from the file, but keep the import, then this is generated:
Note the missing space after import.
The text was updated successfully, but these errors were encountered: