Created by John Tsevdos / @tsevdos
evens.map(v => v + 1);
var name = "Bob", time = "today";
console.log(`Hello ${name}, how are you ${time}?`);
class SkinnedMesh extends THREE.Mesh {
constructor(geometry, materials) {
super(geometry, materials);
this.idMatrix = SkinnedMesh.defaultMatrix();
this.bones = [];
this.boneMatrices = [];
//...
}
update(camera) {
//...
super.update();
}
static defaultMatrix() {
return new THREE.Matrix4();
}
}
import * as math from "lib/math";
import {sum, pi} from "lib/math";
Babel has support for the latest version of JavaScript through syntax transformers. These allow you to use new syntax, right now without waiting for browser support.
Webpack takes modules with dependencies and generates static assets representing those modules. It supports AMD, CommonJs and ES6 module loaders.