This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-08-25
Channels
- # aws (1)
- # bangalore-clj (1)
- # beginners (15)
- # boot (4)
- # clara (7)
- # cljs-dev (7)
- # cljs-experience (3)
- # cljsrn (1)
- # clojure (143)
- # clojure-austin (2)
- # clojure-germany (1)
- # clojure-italy (11)
- # clojure-serbia (11)
- # clojure-spec (96)
- # clojure-uk (20)
- # clojurescript (70)
- # community-development (58)
- # cursive (14)
- # data-science (1)
- # datomic (45)
- # events (2)
- # fulcro (19)
- # jobs (5)
- # jobs-rus (2)
- # off-topic (40)
- # om (24)
- # onyx (3)
- # parinfer (52)
- # pedestal (6)
- # protorepl (38)
- # re-frame (15)
- # reagent (11)
- # ring-swagger (5)
- # specter (37)
- # sql (3)
- # unrepl (3)
- # vim (1)
Hi Experts, with Leiningen, can we pass clojure compiler options, specifically "renamePrefixNamespace" https://github.com/google/closure-compiler-js/blob/master/usage.txt but i don't see that option in https://clojurescript.org/reference/compiler-options
(fyi: this isn’t leiningen-related, since cljsbuild compiler options is passed directly to the cljs compiler)
@shrimpywu don’t support that, but for no particular reason other than it hasn’t been suggested before
@dnolen hmm.. right now if we use the ":modules" option with ":optimization :advanced" flag, compile will expose a lot of global functions/vars. From documentation, if we have "renamePrefixNamespace", compile will put all the globale function/vars under the "renamePrefixNamespace" I would like create a issue, can you point me to where is the right place for it? And I am happen to work on a patch if there is guildeline on how to work on the clojurescript compiler, and can you point me to a sample how other options are hook-up (this is my first few days playing around with clojure/clojurescript)
@shrimpywu I’m using renamePrefixNamespace
in shadow-cljs
and can confirm that it works. There is no compiler option for it though but you could add it to cljs.closure/set-options