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

Bun, WASM and Rust projects with GitHub Actions

submited by
Style Pass
2025-07-29 18:30:06

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…

But (there is always a but…) in Bun there is no support for loading from a remote URL: https://github.com/oven-sh/bun/issues/38 Again, everyone has their priorities… 😣

So in Bun, dynamic imports can reference a local filesystem URL only. However, they CAN be loaded from a compiled executable and they can be loaded from absolute paths or paths relative to the compiled executable. To workaround lack of remote URL support, I wrote a little helper to pull remote modules locally:

So, after previously presenting: “a set of template Deno, Rust and WASM projects on GitHub” in this post I am now presenting:

Leave a Comment
Related Posts