Fork me on GitHub
#clojurescript
<
2020-10-04
>
victorb11:10:43

It seems clojurescript targets are either browser or nodejs. Is there a way I can get it to output environment-agnostic JS code? Basically, the environment I want to run the code in is neither a browser (browser APIs blocked) nor nodejs (no access to dirname and other nodejs specific APIs)

mfikes15:10:20

@victorbjelkholm429 You should be able to specify that the target is :none

🙏 3
victorb15:10:33

@mfikes looks to be what I'm out after, cheers! (Didn't see anything else than browser/node listed at https://cljs.github.io/api/compiler-options, hence my question before)