Fork me on GitHub
#figwheel
<
2018-03-07
>
kommen15:03:59

we’re running into this problem: https://github.com/bhauman/devcards/issues/99, causing a few hundred lines of warnings for us. I guess this is because devcards.core is injected by figwheel as preloads instead being required?

bhauman15:03:36

If you require devcards proper instead of just requiring the macros this goes away

kommen15:03:07

@bhauman yes, we had that until now, but this resulted in devcards ending up in our prod builds which is undesirable

bhauman15:03:43

Are you using a preload?

bhauman15:03:24

so yeah this is an unfortunate trade off and it should only happen on the first build

bhauman15:03:42

its very tricky to do inline devcards

bhauman15:03:08

if you move the devcards into there own build this goes away

kommen15:03:12

yes, we’re using devtools.preload

bhauman15:03:36

yeah that's not the problem

bhauman15:03:06

so there is this other method of making this work

bhauman15:03:56

actually no that wont work

kommen15:03:43

ok, so you suggest moving defcards to their own namespace which is not included in the prod build?

bhauman15:03:51

yeah I really do

bhauman15:03:23

or rather that the trade off for having them inline is those darn warnings

kommen15:03:42

@bhauman alright, thanks!