This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-09-28
Channels
- # admin-announcements (1)
- # announcements (1)
- # beginners (17)
- # boot (29)
- # cider (8)
- # clojure (87)
- # clojure-czech (2)
- # clojure-nl (2)
- # clojure-russia (108)
- # clojurebridge (9)
- # clojurescript (34)
- # cursive (5)
- # datascript (15)
- # devcards (14)
- # editors (6)
- # hoplon (121)
- # jobs (7)
- # ldnclj (22)
- # onyx (2)
- # re-frame (31)
- # reagent (43)
- # testing (2)
Has anyone been able to use boot-cljs with a deps.cljs
that points at foreign-deps with :module-type
?
It seems to work fine without the module-type option on a plain JS file, but doesn’t pick up a commonjs file.
122 is latest non-stable release, but yeah
it should work with current boot-cljs
Do you have example of package using :module-type
?
I was looking at https://github.com/mneise/circle-color. She uses cljs 1.7.48
Did you install clojurescript using the instructions there?
Looks like it needs custom closure-compiler and Clojurescript needs to be updated to depend on custom closure-compiler
@jaen I have a work-around for the current React component I’m integrating (wrap in self-executing closure and require like a normal js dependency)
@jgdavey: ha, it is, but you might have some luck using this - https://github.com/jaen/react-with-modular-cljs - or this - https://github.com/jaen/custom-module-loaders - depending on the library you want to use (the former is less of a hack but doesn't support everything, the latter is more hacky, but so far handled everything I threw at it
But if you have a workaround it might be worth waiting until that shows up in the compiler
@jaen very cool. Thanks for working through this. I’m sure I’ll learn a bunch from reading through it.
It might be best if you try not to, the custom-module-loaders
is Cthulhu levels of insanity, but if you're interested in how the former repo works then try this - https://github.com/jaen/clojurescript/tree/feature/add-modular-lib-support