3 ms·
shipping SQLite as a WASM module can increase your bundle size significantly, depending on your baseline. > How is something that requires a JS runtime easier
by gr4vityWall 2y ago
shipping SQLite as a WASM module can increase your bundle size significantly, depending on your baseline.
> How is something that requires a JS runtime easier than a single-file compiled binary?
You can compile your JS to bytecode and bundle it with its runtime if you want to, getting a single-file executable. QuickJS and Bun both support this, and I think Node.js these days does as well.
If you expect your user to already have a runtime installed and you're not using QuickJS, you can just give them the script as well.