My Three.js page needs to be updated from version r42 to r55, and a lot of the API has changed since then.
While most of the changes were easy to implement, I am currently facing some difficulty with the JSONLoader. The format has transitioned from JavaScript to JSON, and this, along with other alterations, is causing it to fail. An undefined value somewhere in the API is causing issues, but due to the minified code, it's hard to pinpoint the exact problem.
What is the best technique to access the full source in this scenario? Are there any source maps available that could help?
I attempted to replace the three.min.js file with the non-minified version Three.js, but it includes many other files as well. Having to load and reference each of these files just for debugging purposes seems inefficient.
Is there a single file that contains the non-minified version of three.min.js? Or is there an alternative approach that would be more effective?
EDIT I am currently cloning the three.js repo to obtain the source files, which will result in a bunch of HTML like the following:
<script type="text/javascript" src="three.js/src/Three.js"></script>
<script type="text/javascript" src="three.js/src/core/Object3D.js"></script>
<script type="text/javascript" src="three.js/src/core/Geometry.js"></script>
...
The repo is approximately 200MB and is taking quite some time to clone. Unfortunately, Git does not support partial clones, so I have to wait for the entire repository to download.
There has to be a simpler way to do this!