Re:PR converts the Three.js codebase to ES2015 modules
by MatthewPhillips on Saturday July 23, 2016 @11:52AM
(#12149814)
It's available in Edge if you have Windows Insider (the Edge equivalent of Chrome Canary). There are some bugs there though.
Note that the browser's module support is stricter than Node's, you have to point your imports to the specific file you want to import and include `.js` on the end, for example this won't work:
Note that the browser's module support is stricter than Node's, you have to point your imports to the specific file you want to import and include `.js` on the end, for example this won't work:
https://github.com/mrdoob/three.js/blob/dev/src/materials/Ma...
in script[type=module]. So there will still need to be a refactor of THREE.js even after browser support starts coming in.