I’m in the process of learning web app development that is based on the concept of ES6 JavaScropt Modules and that uses module bundler, although I’m still a bit confused about the different ways modules are used, not to mention various bundlers, e.g. webpack, parcel, rollup, vite, etc.
So, can you kindly suggest boilerplate of three.js project that has implemented the use of modules and bundler?
Roll-up should normally tree shake parts that you do not rely on out, unfortunately three itself still has a long way to go to support that process, so it will contain lots of unused clutter despite roll-up.
Instead of relying on shaky CDNs with off-times you could lazy load the module that contains the canvas. You get all green lighthouse and immediate TTL. Otherwise I believe that threeJs docs explain how to use CDNs.