Is there any way to do import
in a custom component that is being built using default bundler
?
I’d like to use vec3
and quat
.
No, it’s either import or you’d use the npm bundler, what are you trying to do?
Here’s an alternative:
const vec3 = glMatrix.vec3;
WL.registerComponent(...);