0

Angular2-Webpack-Starter is a bit too much for my needs right now. So I've created the angular webpack project as seen here:

https://angular.io/docs/ts/latest/guide/webpack.html

I downloaded babylonjs with: npm install babylonjs. From reading around, I get that this isn't a properly formatted package to simply import, but if I add it to vendor.ts it is bundled up in vendor.js:

import "babylonjs/babylon.max";

However when trying to use it, I get:

BABYLON is not defined

So I figure it must not be exported properly. I've tried various ways to export BABYLON, but I can't figure it out.

1 Answer 1

2
import * as BABYLON from 'babylonjs';
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.