Open avaer opened 5 years ago
Note the VM version of this is available with vm.SourceTextModule
and --experimental-vm-modules
.
With this, we can do .link()
interception to have scripts natively cross-import
.
Also note that the THREE.js examples now use module style so they currently do not load in Exokit:
node . https://threejs.org/examples/webgl_animation_cloth.html
With node 11 we can support
import
and.mjs
: https://nodejs.org/api/esm.htmlThe relevant flag is
--experimental-modules
.Related: https://github.com/webmixedreality/exokit/pull/601