I am currently developing an application using Create React App
and Node v16.13.1
that involves extracting metadata from 3D models or geometries. However, in some cases, the 3D models can be quite large, necessitating the use of a Web worker for performing resource-intensive calculations.
Fortunately, there is an existing method called executeUserFunction
link that handles these calculations. During the development environment, this method functions perfectly as expected. However, when I run the application using the production build command (npm run build), the method fails to work.
Based on my analysis, it seems that the method is not being included along with the rest of the files in the production build.