I am in the process of developing a front-end application using Webpack with threeJs functionality integrated. Previously, I would refrain from bundling threeJs to keep the size small by utilizing the threeJs UMD from a CDN link in my index.html file. Despite this approach, I made use of the @types/three
package for typing purposes.
Unfortunately, the @types/three
package has since been deprecated. The current version of three
now includes its own modularized types. However, I am facing difficulty in isolating and utilizing the three package solely for its types without inadvertently including the extensive threeJs codebase in my bundle.
Any helpful suggestions or solutions would be greatly appreciated.