BabylonJS is a
- Large library.
- Statically typed in typescript
- Tree shakeable using es6 modules
For a small scene, using microbuild, I got a brotli compression bundle of 144kb. Before es6 modules were introduced in BabylonJS and before I used microbundle, I had bundles that were over 2mbs.
In my experience, using closure-compiler could reduce this bundle by an additional 20%. However, setting up closure-compiler is a pain! Has anyone tried to transpile BabylonJS Typescript to tsickle to closure-compiler with ADVANCED_OPTIMIZATIONS turn on. I have no idea if the static typing is good enough in BabylonJS; however, getting a library like BabylonJS for just over 100k would be amazing.