Global Import
Import the entire library for easier development experience:
The @babylonjs/* scoped packages are the recommended modern approach, offering ES modules with full tree-shaking support. For development environments, using the global import provides convenience with access to all APIs without needing to add imports for each component.
// Import everything - larger bundle size but simpler development
import * as BABYLON from '@babylonjs/core';
import '@babylonjs/loaders';