3 ms·
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
by bhouston 10y ago
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 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. :)
- zfedoran 10y agoIt'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/auto-modulite.js https://github.com/zfedoran/modulite-three.js/blob/master/au...