Skip to content

Commit

Permalink
Only load ProfilingPlugin when TRACE_TARGET is set
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Aug 17, 2021
1 parent 505640d commit f8954cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/build/webpack-config.ts
Expand Up @@ -1310,7 +1310,7 @@ export default async function getBaseWebpackConfig(
new BuildStatsPlugin({
distDir,
}),
new ProfilingPlugin({ runWebpackSpan }),
process.env.TRACE_TARGET && new ProfilingPlugin({ runWebpackSpan }),
config.optimizeFonts &&
!dev &&
isServer &&
Expand Down

0 comments on commit f8954cf

Please sign in to comment.