hyperfiddle

avocade 2025-12-17T10:55:00.541189Z

Just curious about the prospect of compiling electric code into ES modules (for import maps), or if this would be totally infeasible due to how things are interconnected?

avocade 2025-12-17T10:56:16.075389Z

I have no idea, but I do hear more and more about how they enjoy separate JS-files and import maps in pure-JS-land. Rails has moved to it fully for example since a few years: https://world.hey.com/dhh/hey-is-running-its-javascript-off-import-maps-2abcf203 Metosin wrote about the topic of ES modules as well: https://www.metosin.fi/blog/2024-09-05-using-shadow-cljs-with-esbuild

Dustin Getz (Hyperfiddle) 2025-12-17T10:56:45.818499Z

we haven't started to think about this yet, it may require some changes to electric to make it work

avocade 2025-12-17T14:20:08.537149Z

cool, thanks for letting me know 👍