Following on from a previously outlined move to Deno I’ve now moved to Bun 😅
The main thing I moved to Deno for was a nice way to acheive:
- A single executable binary via Deno Compile.
- Cross platform executables via cross-compilation support in Deno.
- Ability to dynamically load and run additional logic after installation via Deno’s support for the Javascript import() function.
After a while I discovered these items don’t all work well together. It came to light that dynamic loading of modules external to the compiled Deno application was not really supported: https://github.com/denoland/deno/issues/18327 Fair enough, everyone has their priorities…
I then read (but can’t remember where) that Bun does support this. 🥳 Ok, game on!