Fork me on GitHub
#shadow-cljs
<
2023-12-23
>
Panel07:12:18

What would I miss by using external je bundler like esbuild ?

thheller07:12:16

I assume you mean :js-provider :external?

👍 1
Panel07:12:42

Yes, I had to use it because of react-query latest version not working with google closure

thheller07:12:31

pretty much the only thing different is that you have to reload the page if your JS dependencies change

thheller07:12:54

and shadow-cljs can't load any JS deps in the REPL that aren't already loaded by the external file

thheller07:12:10

but if your JS deps are mostly static then nothing much changes

thheller07:12:25

apart from having to run an extra tool 😉

👍 1
Panel07:12:09

So it should still treeshake ? The outputs of esbuild seems to include the whole package while dev. Maybe it get better for release build

Panel07:12:14

Ok cool, so everything was in the doc :face_with_rolling_eyes:

thheller07:12:14

it currently isn't as optimized as it could be though. I'll eventually get to https://github.com/thheller/shadow-cljs/issues/1162 😛