Hi Dalkatosh, thanks for the response. My post above is really regarding the npm module structure, perhaps I should have posted it to bugs?
Great, thanks. I can access the unminified code via:
var BABYLON = require('babylonjs/babylon.max');
// or with ES import semantics
import BABYLON from 'babylonjs/babylon.max';
However, minifcation breaks convention for npm distributions, and provides no benefits to the library consumer. Normally `babylon.js` would be unminified and unconcatenated, with the entry point named as `main` in `package.json`. Babylon does not use module syntax internally. Each file just assigns its code to `window.BABYLON`. So currently it's not possible to maintain the file structure in the package. However simply providing the unminified code as the `main` file would be an improvement.
`math.js` is not included in the npm module, and could not be imported in isolation due to lack of modules.
It is possible to use npm modules in TypeScript. There is an example here.
I understand NPM support wouldn't be a high priority as a front end library, but build tools such as WebKit and and Browserify are quite popular these days.