clojurescript

ClojureScript, a dialect of Clojure that compiles to JavaScript http://clojurescript.org | Currently at 1.10.879
victorb 2020-10-04T11:55:43.270300Z

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)

mfikes 2020-10-04T15:09:20.271100Z

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

1🙏
mfikes 2020-10-04T15:13:14.271400Z

@victorbjelkholm429 More info: https://clojure.atlassian.net/browse/CLJS-2532

victorb 2020-10-04T15:28:33.272100Z

@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)

mfikes 2020-10-04T15:34:32.272300Z

@victorbjelkholm429 Thanks, https://github.com/clojure/clojurescript-site/issues/359

1❤️