I couldn’t figure out how to make :target :esm
work because it requires :module
, and it is hard to understand :module
.
And, plain clojurescript doesn’t output ES6 module yet.
On PureScript repository, there is a proposal to forbid CommonJS and unify everything with ES6 modules.
I think clojurescript should default to producing and consuming ES6 modules and allow CommonJS for a while for backward compatibility.