Generating ES Modules (Browser, Deno, ...)

Doing what exactly? :browser is still the best option for everything browser based.

I’d be interested the following:

  1. using snowpack.dev for local caching. We already load deps like plotly or vega on demand using d3-require but they currently don’t work when offline.
  2. also advanced compiling modern js (typescript) deps like GitHub - codemirror/view: DOM view component for the CodeMirror code editor assuming that the emitted js is Closure compatible.
  3. enabling easy consumption of our ClojureScript code from js
  4. the isolation provided by ESM allowing us to run different versions of the same code alongside each other

After writing the above it’s beginning to dawn on me that only the last two points are really related to switching to ESM modules for our ClojureScript build, is that correct?