Cdn vs webpack: current best choice?

I am currently trying different 3d engines and I will give Babylon a go.

I read that Babylon is so coupled that tree shaking won’t bring much on the table:

Due to the wayBabylon.js is built, Tree-Shaking is currently not quite possible

Ok so is a CDN ok even for larger projects? I like this approach better because it is easy.

Thank you!

Depending on what you use tree shaking even in the current version would still bring quite a substantial win in size.

That said the cdn approach is more than fine and we use it in our sandbox and playground every day :slight_smile:

1 Like

Thanks for your input!
Ok I will make the effort to webpack it all… :+1: