I’m on a bit of treeshaking journey trying to get my bundle size down currently BabylonJS is sitting just over 2000kB (not compressed).
While investigating I noticed that materials (pbrBaseMaterial and StandardMaterial in my specific case) load in Shaders and ShadersWGSL, as I’m not using WebGPU I imagine ShadersWGSL will be loaded and never touched? Is there anything I can do to shake this out?
dist/static/babylon.js 2,018.82 kB │ gzip: 462.55 kB
dist/static/loaders.js 80.09 kB │ gzip: 19.78 kB
I appreciate Babylon is a super complex bit of code and will be quite large regardless but I’m just seeing what I can shave off ![]()
Thanks for all your hard work ![]()
