sci

arohner 2025-01-23T02:52:42.941199Z

Do ESM module imports work from a browser?

borkdude 2025-01-23T13:12:40.443409Z

It depends. If you're going to use SCI async then you can make this work. https://github.com/babashka/sci/blob/master/doc/async.md

borkdude 2025-01-23T13:15:18.402099Z

If you want better ESM support you might want to look at #cherry or #squint https://github.com/squint-cljs/cherry/blob/main/doc/embed.md is kind of overlapping with the SCI use case

👍 1
arohner 2025-01-23T02:54:46.435689Z

and does ^:export work?

borkdude 2025-01-23T13:14:36.628919Z

No. You can manually add a CLJS function onto the global state though, with

(set! (.-my_alert js/window) my-alert)