Closed benjaminknox closed 9 months ago
@ponahoum Thank you for this code! What do you think of this PR?
@benjaminknox - I am continuously getting an error. Any idea why I am getting loading USDZ model TypeError: THREE.TextureLoader is not a constructor?
What?
I ran into an issue when bundling this app with an es6 app, my resulting packaged source included two threejs builds,
three.module.js
(from my original build) andthree.cjs
(this one is from this library). This is caused by the current version1.0.7
.This fixes duplicate builds by adding a separate build for
es6
in the/lib/esm
directory and specifying themodule
entrypoint.Details
0.143.0
which is what I am using (is that ok?)es6
compatible code in addition toCommonJS
module
property for the module code entrypoint/lib/esm/USDZLoader.js