JavaScript Profiler Screenshot
I have been working on a reactjs project where I build ray tracer in reactjs. The app works fine in development server (in 0.3-0.7 secs to render one image). But as soon as I create production build, the time increases drastically to 5 seconds and sometimes to 10-12 seconds. I checked in JavaScript profiler, it says babel runtime takes most of the time in calling the methods in vec3.js. How to optimize the speed for the same. I have attached the screenshot of the JS profiler from chrome-dev-tool.