Open fzembow opened 4 years ago
@fzembow, The SVGLoader in three/examples/jsm/loaders/SVGLoader from package 'three' has es6 style import statements which will only work with node if that feature is turned on, or if the file is compiled to commonjs.
One option for getting this to work on the server is to turn on node support for the import statement. I think in node 12 it's an experimental feature.
But this still leaves making this work in the browser. And I'm not sure how to do that without compiling the javascript file. Of course, we could just compile all package js files, but this would slow things down tremendously since there are so many package files usually.
I will think about this use case. Let me know if you have any ideas!
Not sure why this doesn't work:
result:
The same works fine on webpack
Is there some configuration on module resolution styles that needs to happen here?