Hi,
Sorry if this is a stupid question, but now that I am about to push an alpha version of my new game in production, I find that my bundle size is quite big…
So I was thinking to import only the classes I am using from babylon and would like to know if there is a correct and straight forward way to find their path ?
I found some of them directly in the @babylonjs\core folder, for others I had to dig a bit wihtin folders, did some “find in files” with notepad++, but, this is not yet working (don’t really know for example the path to Vector3… should be around @babylonjs/core/Maths/math.vector
…)
Here are my deductions so far…
import { Engine } from '@babylonjs/core/Engines/engine';
import { Scene } from '@babylonjs/core/scene';
import { ArcRotateCamera } from '@babylonjs/core/Cameras/arcrotateCamera';
import { HighlightLayer } from '@babylonjs/core/Layers/highlightLayer';
import { Vector3 } from "@babylonjs/core/Maths/math.vector";
import { MeshBuilder } from '@babylonjs/core/Meshes/meshBuilder';
import { ParticleHelper } from '@babylonjs/core/Particles/particleHelper';
import { Texture } from '@babylonjs/core/Materials/Textures/texture';
import { ParticleSystem } from '@babylonjs/core/Particles/particleSystem';
import { Color4 } from '@babylonjs/core/Maths/math.color';
import { Color3 } from '@babylonjs/core/Maths/math.color';
import { CubicEase } from '@babylonjs/core/Animations/easing';
import { EasingFunction } from '@babylonjs/core/Animations/animation';
import { Animation } from '@babylonjs/core/Animations/animation';
import { HemisphericLight } from '@babylonjs/core/Lights/hemisphericLight';
import { DirectionalLight } from '@babylonjs/core/Lights/directionalLight';
import { ShadowGenerator } from '@babylonjs/core/Lights/Shadows/shadowGenerator';
import { Mesh } from '@babylonjs/core/Meshes/mesh';
import { StandardMaterial } from '@babylonjs/core/Materials/standardMaterial';
import { Plane } from '@babylonjs/core/Maths/math.plane';
import { PointerEventTypes } from '@babylonjs/core/Events/pointerEvents';
import { DynamicTexture } from '@babylonjs/core/Materials/Textures/dynamicTexture';