This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-04-15
Channels
- # announcements (3)
- # architecture (1)
- # babashka (52)
- # beginners (228)
- # calva (1)
- # chlorine-clover (31)
- # cider (9)
- # clj-kondo (16)
- # cljs-dev (25)
- # cljsrn (21)
- # clojure (116)
- # clojure-argentina (8)
- # clojure-europe (18)
- # clojure-france (17)
- # clojure-germany (1)
- # clojure-nl (5)
- # clojure-spec (49)
- # clojure-uk (63)
- # clojurescript (59)
- # community-development (14)
- # conjure (89)
- # core-matrix (1)
- # cursive (18)
- # data-science (1)
- # datomic (27)
- # exercism (4)
- # figwheel-main (5)
- # fulcro (38)
- # ghostwheel (8)
- # graalvm (5)
- # hoplon (2)
- # jobs-discuss (17)
- # juxt (1)
- # lambdaisland (5)
- # luminus (1)
- # lumo (9)
- # malli (7)
- # off-topic (32)
- # planck (24)
- # re-frame (14)
- # reagent (14)
- # reitit (14)
- # rum (23)
- # shadow-cljs (80)
- # spacemacs (2)
- # sql (6)
- # unrepl (1)
- # xtdb (2)
Re the bundle target stuff https://clojurians.slack.com/archives/C07UQ678E/p1586791429463800 it suggests it'll be possible to write cljs libs which depend on npm libs, but it's not clear to me how that would work. Can someone pls explain?
@henryw374 deps.cljs
is a file that can be in your artifact
a lot of the changes are related to making it easier to build custom tools over the public apis
Ok I didn't think that was new... But I read the post to mean there was something new wrt cljs libs and npm. I had heard ppl say a while back they thought npm-deps was heading towards deprecation... Apparently not then!
in fact it's trivial to switch a :bundler
project and try to force everything through Closure - won't work for React of course (w/o manual intervention)
you could write a open source lib that you want JS users to directly consume/contribute that you also want to consume in ClojureScript but get DCE / code splitting
currently node_modules
handling is all or nothing - all :bundle
or all Closure but will probably spend some brain cycles on how to allow partitioning that's not cumbersome in the near future
btw, here is my repo for graaljs support using the new :target-fn compiler option https://github.com/nextjournal/clojurescript-graaljs