Replies: 4 comments 3 replies
-
There is a package for that: next-sourcemaps But that will likely be deprecated after the experimental sourcemaps support is released. Out of curiosity, why doesn't the experimental feature work for you? |
Beta Was this translation helpful? Give feedback.
-
Even with next-sourcemaps, it appears functions/classnames are obfuscated. Is there something else that needs to be done? The experimental feature doesn't work because we're on next 9.3.5 (and it only exists in 9.4+) |
Beta Was this translation helpful? Give feedback.
-
I have source maps working in production. You must use https://github.com/UnlyEd/next-right-now/blob/v2-mst-aptd-gcms-lcz-sty/package.json#L144 And, as stated above, this package will be deprecated soon and they'll be integrated within Next.js itself. |
Beta Was this translation helpful? Give feedback.
-
Yes, I am using the canary version of that library. The source maps are working. The problem seems is that with |
Beta Was this translation helpful? Give feedback.
-
Since there is currently no way to get source maps on a production build, how are we supposed to profile the application? Profiling in development mode is, obviously, not the same. And if you are in production mode, then you don't get source maps to find where the problem lies.
I know that there is an experimental feature, but is there anything more reliable, or any workaround for an older version of next? I find it hard to believe that nobody has ever had to do this before 🤔
Beta Was this translation helpful? Give feedback.
All reactions