Fork me on GitHub
#figwheel-main
<
2019-01-24
>
souenzzo17:01:12

Can I prevent figwheel to compile the files that not required by main?

dominicm17:01:49

Yes, you set :build-inputs @souenzzo

👍 5
bhauman19:01:09

@niklas.collin yeah that’s a good suggestion. File an issue on cljs-test-display? Or better yet a PR?

Empperi20:01:04

Can't promise I'll find time to create a PR but if I do I'll cook up something.

dominicm21:01:55

@souenzzo a warning though, if you set that, then :figwheel-hooks won't work except when you modify main.

bhauman22:01:33

@dominicm so Ajax.cljs isn’t in the dependency tree with :main at the root? That means it’s not going to get rebuilt and won’t trigger a reload. Others would call that a bug if reload got called when a file that isn’t in the dep tree changed.

dominicm22:01:21

It is in the dependency tree

dominicm22:01:40

My main requires it, otherwise I would agree

dominicm22:01:14

@bhauman should the main be rebuilt when ajax is in that case?

bhauman22:01:14

Interesting, yes if it’s a dependency both Ajax and main should be rebuilt and reloaded

bhauman22:01:40

At this point it would important to get a minimal case.

dominicm22:01:14

Okay :) I will have free time tomorrow

dominicm22:01:21

So in about 12 hours

dominicm09:01:34

I've opened an issue on figwheel-main to track this, with a reproducible repo in it 🙂