Multiple targets browser on the same page


#1

Hi!

I wonder if it’s possible to have two builds (browser) and integrate them to the same page?

Thx


#2

That is generally not a good idea since both builds will include their own copy of cljs.core and will not be compatible with each other. Each build will bundle all of its dependencies so you are likely to include everything twice on the page which is a substantial overhead.

Why are you trying to have 2 builds in the page? Are you maybe trying to do something that :modules already solve?


#3

Thanks @thheller for your answer!

Your are right! I’m going to use :modules