Allow React Profiling in production through reactProductionProfiling: true
in next.config.js
#13709
Labels
good first issue
Easy to fix issues, good for newcomers
Milestone
Feature request
Is your feature request related to a problem? Please describe.
Currently you have to edit the Next.js webpack configuration to make the React Profiler work in production. Similar to https://gist.github.com/bvaughn/25e6233aeb1b4f0cdb8d8366e54a3977#webpack-4.
Describe the solution you'd like
Introduce a new flag in
next.config.js
similar toreactStrictMode
that allows users to opt-in to the profiling bundle (configures https://gist.github.com/bvaughn/25e6233aeb1b4f0cdb8d8366e54a3977#webpack-4 automatically)The text was updated successfully, but these errors were encountered: