问题
I'm struggling a bit with the new viewer version 7 and the inclusion of three.js. According to
https://forge.autodesk.com/blog/webpack-and-threejs-forge-applications
it is necessary to define three.js as external. But where exactly do I do that? The viewer is embedded in an Angular environment.
回答1:
Don't add THREE as dependency in package.json and use the THREE global loaded by the viewer. If you just need the THREE types: (https://www.npmjs.com/package/@types/forge-viewer)
来源:https://stackoverflow.com/questions/57817235/webpack-and-three-js-in-forge-applications