ES6 version incoming

#41

Hello everyone.

Congratulations to Babylon.js team!
Thank you for ES6 version. It is a game changer.
I could build sample project in just 700KB.

One thing I’d like to ask about is glTF2 loader size.
When I added it to my project its size has grown to 1.05MB, so it is 350KB more.
For comparison, the weight of all loaders (babylonjs.loaders.min.js) is 118KB.

Is that normal or am I doing something wrong?
this is my glTF import code:
import ‘@babylonjs/loaders/glTF/2.0/glTFLoader’.

1 Like
#42

It is because of all the dependencies required for the loader like lights, pbr, animations and so on. We ll see how we could decouple it more for 4.1

2 Likes
#43

Pinging @bghgary FYI

1 Like
#44

Thank you for information.
So I am looking forward to 4.1 :slight_smile: