Use ESM with node & shadow-cljs

Try :target :esm. More info here.

For examples of :target :esm, check out: