Hiya,
BJS works great with es-dev-server to handle the bare import modules. But now that I want to use the inspector, not so much.
Importing the following as per the docs causes a runtime error:
import “@babylonjs/core/Debug/debugLayer”;
import “@babylonjs/inspector”;
It errors on a function called “webpackUniversalModuleDefinition”. The variable “exports” evaluates to undefined, which causes the else condition to try to get Babylon features from root[“BABYLON”] which, because I’m using ES6 modules, the root variable BABYLON doesn’t exist.
Am I missing something, or is webpack just required for this to function?