This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-05-23
Channels
- # aws (4)
- # beginners (14)
- # boot (7)
- # cider (75)
- # clara (87)
- # cljsrn (6)
- # clojure (115)
- # clojure-berlin (2)
- # clojure-dusseldorf (2)
- # clojure-gamedev (8)
- # clojure-italy (15)
- # clojure-russia (9)
- # clojure-spec (46)
- # clojure-uk (195)
- # clojurescript (24)
- # css (44)
- # datascript (19)
- # datomic (18)
- # emacs (6)
- # fulcro (57)
- # hoplon (1)
- # jobs (3)
- # jobs-discuss (37)
- # jobs-rus (3)
- # luminus (6)
- # lumo (28)
- # off-topic (24)
- # onyx (11)
- # planck (8)
- # re-frame (31)
- # remote-jobs (12)
- # rum (10)
- # schema (4)
- # shadow-cljs (28)
- # specter (24)
- # sql (3)
- # tools-deps (34)
- # vim (43)
- # yada (10)
@grav my-package.namespace
maps to my_package.namespace
but must also be in a my_package/namespace.cljs
. otherwise -
is totally fine.
@mhuebert yeah that should work. you might want to use (tap (:output-multi proc) c true)
so the c
closes when the worker stops
https://clojureverse.org/t/help-wanted-release-bundle-size-visualization/871/11?u=thheller
I’m having issue when using default exports, they’re undefined
I import them like this:
[“moment” :default moment]
[“react-datepicker” :default DatePicker]
@troglotit default exports depend on how the package is packaged. if its commonjs it might just has a single export in which case it would be :as DatePicker
or :as moment
. you can try using :as x
always and (js/console.log x)
to see which properties it has. :default
only works if there is a default
property.
yeah, it was commonjs. It had "module": "es"
- so I thought it should provide es modules 😅
I still need to add support for those. unfortunately not all pacakges are available as ES and interop between some was weird
@thheller is push-state still the default for the shadow dev server? I seem to recall this was at one time, not sure if that has changed or if the docs should be updated
is there a built-in for running a particular namespace, but not all namespaces, through a test? or would that require creating a custom :runner-ns
currently im using a custom runner-ns that is a clone of the provided https://github.com/thheller/shadow-cljs/blob/master/src/main/shadow/test/browser.cljs with a hard-coded regex 😛
@U0W0JDY4C :ns-regexp "my.only.namespace-test"
is there any docs/explanation of what :dev {:compiler-options {:devcards true}}
does?
@lilactown that is a flag to enable https://github.com/bhauman/devcards (if you have included it)