This solves some vulnerabilities, but more excitingly, allows us to import three.js examples as modules! That removes the need for some nasty webpack modification. It also allows for proper tree shaking, where we can ignore all unused three.js code. Should give some significant loading benefits! I'll save that for another PR though, might be a bit of a hassle to do. Take a look at custom-materials.js in this PR for an example.
This solves some vulnerabilities, but more excitingly, allows us to import three.js examples as modules! That removes the need for some nasty webpack modification. It also allows for proper tree shaking, where we can ignore all unused three.js code. Should give some significant loading benefits! I'll save that for another PR though, might be a bit of a hassle to do. Take a look at
custom-materials.js
in this PR for an example.Referencing issues Closes #2 at long last...