I'm looking for a way to define Clojurescript functions in the Javascript global namespace at compile time. What I mean by compile-time is that I want the Clojurescript compiler to output this: function some_fn() { }. I know that this is not idiomatic and everything should reside in a namespace but the environment that I'm in forces me to do this. So, ideally something like (defn ^:global some-fn []) that would work similar to how :export works but ignores the namespace.
I'm aware of the runtime method for defining global functions using goog.global, e.g
(set! goog.global.someFunction some-clojure-fn) but this doesn't work in my environment.
^:exportyou can refer to it directly from javascript? e.g.my.name.space.some_fn()var foo = "bar"- is this possible?