oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
74.35k stars 2.78k forks source link

add a way to auto-impoort all paks #15236

Open steve02081504 opened 3 days ago

steve02081504 commented 3 days ago

What is the problem this feature would solve?

I'm trying to migrate my repo from Deno to Bun because Deno core members said they probably won't support clearing the import cache, while Bun has this feature. However, my repo heavily relies on Deno's auto-install feature. It works perfectly fine in Deno when using "nodeModulesDir": "auto" + --allow-scripts, but after migrating to Bun, my whole project can't run. Image Image

What is the feature you are proposing to solve the problem?

I wish Bun could support auto-import for all packages via auto-import! If there are any security concerns, I hope at least a switch can be added to allow this.

What alternatives have you considered?

no idea.