Hacker News new | ask | show | jobs
by billti 810 days ago
Last time I tried Babylon even for something minimal my bundles (with esbuild) were just too big compared to alternatives.

I don’t see any mention of size optimizations in the blog post. Anyone have any knowledge on this they can share (else guess I’ll just try again with the new release).

3 comments

It’s still quite monolithic. The issue is that it is a more complete engine than, let’s say Three, so the scene graph makes use of pretty much everything. Even you don’t use them, things like audio, webxr, node materials would get pulled in, despite tree shaking.

For our purposes, we filter out unused modules using webpack build. Things would crash badly if something would get used by accident, but we have a pretty controlled environment

You should not add inspector as dependency. This pulls in everything.
What are the alternatives available currently?