At the moment im using three.js with WebXR to create a AR interface, so ive used Node Express (I know) so that can use HTTPS and SSL, which is required for devices to accept AR.
The only thing about this, is that it seems I have to take the whole 400MB+ three.js file to use the GLTFLoader, since the loaders are all linked to eachother with imports. The DevBridge tutorial im following also seems to recommend doing this. Obviously Its not an issue right now in development, but in production that would be a pretty hefty download no? There may be something that I am missing im getting something mixed up though, as it doesn’t seem to take that long to load up the page.
I did try to use path to route to /jsm and /build in node_modules, but I had some some issues when importing GLTFLoader, where it would say
Failed to resolve module specifier “three”. Relative references must start with either “/”,
Here is the tutorial:
If you would like some code samples, please let me know,