I am quite comfortable with TS and its tooling. As a new user, I went straight to Babylon.js ES6 support with Tree Shaking | Babylon.js Documentation which doesn’t use the BABYLON namespace and yet all the samples do – so, that’s a head scratcher.
For new projects, I guess the best choice is to use the BABYLON namespace even with TS, but I am still intrigued if the team is encouraging the use of es6_support for future projects.
Links related to my question
Hello,
I just started using Babylon, and I’m having a lot of fun with it. One thing I’ve struggled with is finding the proper import lines for ES6 support. Obviously they are different than most of the tutorials and playground examples out there.
These ones are in the ES6 documentation:
import { Engine } from "@babylonjs/core/Engines/engine";
import { Scene } from "@babylonjs/core/scene";
import { Vector3 } from "@babylonjs/core/Maths/math";
import { FreeCamera } from "@babylonjs/core/Cameras…