Hacker News new | ask | show | jobs
by lioeters 340 days ago
I just learned that Bun supports "autoimports" similar to the above.

> If no node_modules directory is found in the working directory or higher, Bun will abandon Node.js-style module resolution in favor of the Bun module resolution algorithm.

> Under Bun-style module resolution, all imported packages are auto-installed on the fly into a global module cache during execution (the same cache used by bun install).

https://bun.sh/docs/runtime/autoimport