Fork me on GitHub
#clojurescript
<
2019-05-16
>
tatut09:05:52

in lein-cljsbuild, how do I control where modules are loaded when doing code splitting? It seems to generate a file: URI pointing to the absolute path of the module js file on the jenkins machine doing the build

polymeris16:05:58

(let [m {:/ 0, :1 1, :2 2, :3 3, :4 4, :5 5, :6 6, :7 7}]
  (-> (clj->js m)
      (js->clj  :keywordize-keys true)
      (= m)))
=> true
(let [m {:/ 0, :1 1, :2 2, :3 3, :4 4, :5 5, :6 6, :7 7, :8 8}]
  (-> (clj->js m)
      (js->clj  :keywordize-keys true)
      (= m)))
=> false
:thinking_face:

thheller16:05:19

:/ is not a valid keyword and neither are keywords starting with numbers

polymeris16:05:07

clojure.test.check.generators/keyword generates :/, though

thheller16:05:16

> Per the symbol rules above, :/ and :/anything are not legal keywords.

Alex Miller (Clojure team)16:05:51

I'd consider that a bug in the generator

polymeris19:05:56

I have a patch for it -- wil you be posting in #announcements when the new JIRA is up?

polymeris14:05:23

We can't register/create issue yet, right?

Flawless16:05:42

Hello, is here any good datetime picker cljs lib that can be used with reagent? I googled some days and find only https://github.com/timgilbert/cljs-pikaday but it can pick only date, also I tried to use cljsjs/flatpickr lib but I have no experience with cljsjs libs =\.

Edrian Gomez23:05:59

Hi all, is anyone aware of any articles or videos which compare the production build sizes of cljs+react vs. react only? Curious to see how they compare as codebases gets larger

lilactown23:05:09

that’s going to depend. CLJS comes with a lot of features (an entire standard library, immutable data structures, etc.)

lilactown23:05:28

so it’s hard to compare “just” react to CLJS + React

dominicm23:05:39

I think I've seen the number 25kb for cljs itself.

dominicm23:05:47

It should be easy to create a small example of a hello world.