- try removing expose if you are exposing BABYLON in your config, and add this instead:
{test: /babylonjs\/babylon.js$/, loaders: ['exports?BABYLON']},
{test: /babylonjs\/babylon.canvas2d.js$/, loaders: [ 'imports?BABYLON=babylonjs/babylon']},
(the above is exposing the babylon library specifically to the canvas 2d lib, when it encounters the