This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-03-14
Channels
- # beginners (74)
- # boot (23)
- # braid-chat (7)
- # cider (5)
- # clara (3)
- # cljsjs (17)
- # cljsrn (1)
- # clojure (105)
- # clojure-austin (9)
- # clojure-new-zealand (34)
- # clojure-poland (2)
- # clojure-russia (177)
- # clojure-uk (41)
- # clojure-ukraine (2)
- # clojurescript (130)
- # component (1)
- # core-async (2)
- # core-matrix (6)
- # cursive (7)
- # data-science (103)
- # datomic (24)
- # emacs (15)
- # funcool (4)
- # hoplon (21)
- # immutant (151)
- # ldnclj (76)
- # melbourne (1)
- # off-topic (8)
- # om (152)
- # om-next (1)
- # onyx (26)
- # parinfer (38)
- # re-frame (13)
- # reagent (14)
- # spacemacs (1)
- # vim (92)
- # yada (1)
@juhoteperi: are there any tools to deal with packages which do var React = require('react');
?
I think in most cases such packages can be compiled using browserify or such to "normal" JS
Usually packages provide some kind of build task to build browser compatible files
Also, ClojureScript has some support for converting CommonJS modules to Closure modules, but I don't know if that is yet usable and what would that require from other packages
:module-type :commonjs
on deps.cljs
But I don't know how it is supposed to map require calls to closure modules
Looks like react-input-mask only uses babel to compile ES6 to ES5 CommonJS module
A simple fix might be to remove the line with require call, React
should already be available globally when you have :requires ["cljsjs.react"]
on deps.cljs
Something like it. Some package tasks are using regex to replace some parts of files.
Yeah it's provided by boot-cljsjs
@juhoteperi: sorry for submitting previous takes, I should've checked better 😮