21
22import '@babylonjs/core/Engines/WebGPU/Extensions';
23import { JRNozzle } from './models';
24import './models'; 25
26 //import '@babylonjs/core/Debug/debugLayer';
27 //import '@babylonjs/inspector';
20import "@babylonjs/core/Culling/ray" //Add ray casting support for hit testing.
21
22import '@babylonjs/core/Engines/WebGPU/Extensions';
23import { JRNozzle } from './models'; 24import './models';
25
26 //import '@babylonjs/core/Debug/debugLayer';
It is always recommended to group all imports of a single path or source in a single import declaration. These usually happen in a codebase when multiple developers are working on the same codebase. It helps improving code refactoring and code readability as well.
// <!-- index.js -->
import calc from './calc.js'
import { add } from './calc.js'
console.log(add(1, 2))
// <!-- index.js -->
import calc, { add } from './calc.js'
console.log(add(1, 2))