This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-03-31
Channels
- # aws (1)
- # beginners (82)
- # boot (7)
- # cider (1)
- # cljs-dev (13)
- # cljsrn (1)
- # clojure (37)
- # clojure-dev (5)
- # clojure-italy (5)
- # clojure-spec (9)
- # clojure-uk (8)
- # clojurescript (110)
- # community-development (6)
- # datomic (1)
- # devcards (1)
- # fulcro (12)
- # lein-figwheel (1)
- # off-topic (34)
- # portkey (24)
- # protorepl (25)
- # re-frame (4)
- # reagent (29)
- # shadow-cljs (8)
- # spacemacs (11)
- # specter (3)
- # unrepl (1)
- # vim (1)
@jannis foreign-libs preprocess option works like that. I don't remember if it can be used with node modules. The implementation should work but not sure how to use the option.
That would make things pretty flexible and I bet allow various small problems to be fixed on the fly.
What could that look like?
(b/build
{:preprocess-js [{:file "node_modules/lib/symbol-observable/lib/index.js"
:fn (fn [ijs] ...) ; returns an IJavaScript again
:method :fix-babel-output ; alternative (similar to :preprocess of :foreign-libs): a dispatch key
}]})
in order to do make this possible we need to make our pipeline more Closure like, i.e. put compiled source on the input not on disk