-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
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
Bun overrides "ws" package even when --target=node #3844
Comments
Trying to get around this by using a plugin in the meantime. I don't know if it's just that I don't know much about making plugins, but when I try to build with the plugin, no output files are generated and no errors are thrown. And yes, "outdir" is specified. Don't know if this is an issue with me or bun. |
confirming that it is a bug that it is using bun's module list to mark as external when --target=node instead of using a different list for node |
resolver.zig line 592 is where we are using .Aliases, which contains ws and all the bun modules. should we just make a separate comptime list for this? |
this is also a problem for |
trying to work on this |
* Fix(bundler): use different alias mappings based on the target. Close: #3844 * chore: reduce duplicated code. * chore: split to two separate ComptimeStringMap.
What version of Bun is running?
0.7.1
What platform is your computer?
Microsoft Windows NT 10.0.22621.0 x64 | Using WSL
What steps can reproduce the bug?
bun init
bun build --target=node --outdir=dist index.ts
What is the expected behavior?
Bun should bundle the original/node "ws" package since --target=node.
What do you see instead?
The bundle contains the import without the "ws" package bundled with it.
Additional information
No response
The text was updated successfully, but these errors were encountered: