This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-21
Channels
- # aatree (88)
- # admin-announcements (14)
- # alda (26)
- # announcements (4)
- # avi (6)
- # aws (7)
- # beginners (80)
- # boot (268)
- # braid-chat (58)
- # cider (4)
- # clara (54)
- # cljs-dev (16)
- # cljsrn (27)
- # clojars (13)
- # clojure (123)
- # clojure-chicago (2)
- # clojure-czech (8)
- # clojure-france (5)
- # clojure-hamburg (2)
- # clojure-miami (6)
- # clojure-nl (5)
- # clojure-russia (285)
- # clojure-spain (2)
- # clojurebridge (3)
- # clojurescript (137)
- # code-reviews (14)
- # community-development (6)
- # core-async (8)
- # core-matrix (10)
- # cursive (2)
- # datascript (1)
- # datomic (24)
- # dirac (2)
- # emacs (5)
- # hoplon (4)
- # incanter (6)
- # jobs (7)
- # ldnclj (42)
- # ldnproclodo (2)
- # leiningen (1)
- # mount (60)
- # off-topic (15)
- # om (134)
- # onyx (65)
- # perun (4)
- # portland-or (2)
- # proton (15)
- # random (1)
- # re-frame (24)
- # reagent (7)
- # testing (4)
- # yada (9)
@mfikes: only just now got admin access to this machine so I am behind schedule on the testing I said I would do 😞
Hi, is it expected that most cljsjs libs don't seem to work in nodejs :optimizations :simple
because the js have clauses like if (typeof module === 'object' && module.exports)
so they don't write their exports to global
?
@snoe questions about issues with cljsjs libs and Node.js are not really the right place for this channel, better for #C03S1L9DN
@dnolen: sorry, I asked here because I'm looking at jira issues like http://dev.clojure.org/jira/browse/CLJS-1314 and commits like https://github.com/clojure/clojurescript/commit/87f39511a54d7b91ae86f581fda90f280f985816 and trying to figure out if they apply to :simple
compiles. Asked more appropriately for this channel perhaps: before I dig into the internals of cljs to figure out what I'm doing wrong, does closure or the cljs compiler do any rewriting of AMD modules?
@snoe there is some support for transforming UMD modules, but it’s not perfect because UMD is not a real thing
@snoe: if you want to use CommonJS/AMD/UMD the best bet is to use something like webpack or browserify to compile them out and use the resulting file with :foreign-libs
it’s really Node.js style CommonJS where you’ll want to look at Webpack or Browserify
I don’t know how well those tools deals with UMD - perhaps they just try cover more cases
Well, they work well, even with CommonJS, for standalone files. The problem is that last time I've seen that code it used only "."
for module root, so only relative imports will work - you won't be able to require "react"
or such.