I'm trying to import three.js. I've installed it with:
bower install threejs --save
And I've created a threejs.amd.json file (because it doesn't have any kind of amd file):
{
"paths": {
"threejs": "build/three"
}
}
After I run 'grunt devel', I try to import with:
imports: {'threejs'. "and the rest of the imports"}
But the package doesn't seem to load–the app runs okay, but there's no 'three' module in the browser. There is only one JS file and that's three.js in the 'build' directory. Surely, that is the only module. If I do anything like import 'threejs/three', it kills the application.
What am I doing wrong?
--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
[hidden email].
For more options, visit
https://groups.google.com/d/optout.