News for hackers. Stuff that matters.
Re:PR converts the Three.js codebase to ES2015 modules by bhouston on Saturday July 23, 2016 @10:02AM (#12149478)
It should be clear that this conversion was primarily done via a script. So it is mostly an automated conversion.

If you are running forks of ThreeJS, like we are with https://Clara.io, you can run the same conversion script on your repo and then merge in the new ThreeJS.

I haven't done it yet, hopefully in the coming week, but it should mostly work.

Next up I hope is moving ThreeJS to full ES6 classes. :)

Re:PR converts the Three.js codebase to ES2015 modules by zfedoran on Saturday July 23, 2016 @11:35AM (#12149770)
It's actually a lot of fun to write a script like the one they used. I highly recommend it if you have a dependency that is large and not split up into modules. I dabbled with converting Three.js into modules through a script a couple years ago, took only an afternoon to get it working initially.

I'll have to take a look to see how the official version compares to my hack of an attempt. If Inyone else is curious: https://github.com/zfedoran/modulite-three.js/blob/master/au...