ES6 version incoming

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

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

3 Likes

Pinging @bghgary FYI

1 Like

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

1 Like

@sebavan is there any info on if it’s planned to add all side effects as an array of modules (or some general glob) under the "sideEffects" property in package.json?

Unfortunately too many of our files have side effects, I started this but ending up with no real improvements regarding the imports :frowning:

i see. well, ok, thanks anyways :slight_smile: