Consider using bundler from ellx-app #125
Description
Irydium's bundler (what turns a set of svelte components + javascript into a web page) is based off of the REPLicant repository (as well as the presentation given at Svelte summit 2020) with only some minor modifications. REPLicant an impressive piece of demoware, but its intention was always didactic: it was never meant to actually be used in production. Notably, the Irydium bundler lacks:
- Comprehensive support for importing the universe of packages from npm (many things don't work)
- Ability to cancel an in-progress bundling
- Source maps
- Any kind of caching
- HOT-module reloading
- ... probably other things I'm forgetting...
There's lots of great innovation in the "bundling" space (snowpack, vite, esbuild, ...) in general but AFAIK there's nothing well-established that allows bundling to happen in the client as a first class citizen (e.g. they assume you have a full-blown node setup on your workstation). The one exception seems to be the ellx bundler by @dmaevsky and @matyunya, which was recently open sourced:
https://github.com/dmaevsky/ellx-app/tree/master/src/bundler
It already supports at least the first and second items on the list above and it looks like there's probably a path to supporting the rest. We should consider using it in Irydium, one way or another.