Hi.
I am using webpack 4 to bundle my project. But after bundling i get this error in console.
I am using .babylon format and I’ve imported both babylon and babylon loaders.
import * as BABYLON from 'babylonjs';
import 'babylonjs-loaders';
Also I am using this code to load the model.
BABYLON.SceneLoader.Load(“assets/mesh/”, “scene1.babylon”, engine, function (scene) {});
I am kinda beginner with webpack so I am not sure if I have to include something in webpack.config.file. Maybe babylon-file-loader?