Profiler component names not showing correctly with productionBrowserSourceMaps enabled.
The issue involves incorrect component name display in React Profiler when productionBrowserSourceMaps is enabled. This appears to be a source map processing issue during production builds with profiling enabled. The problem is reproducible but requires understanding of both Next.js build process and React's profiling internals.
latest in package.json at time of submission - 10.1.3
14.16.0
chrome
macOS
next build --profile; next start (local in prod mode)
Starting with npx create-next-app --example with-typescript with-typescript-app, I added:
module.exports = {
productionBrowserSourceMaps: true,
}
to next.config.js, and I altered npm run build to run:
"build": "next build --profile",
Then when I did a build and a start, the React Profiler doesn't show the proper names of the components:

In prod mode with --profile and productionSourceMaps, I expect profiler to show proper names of components:
See above, I used with-typescript and altered two files.
Claim this issue to let others know you're working on it. You'll earn 10 points when you complete it!