Skip to content

Commit

Permalink
Use different hook for webpack hot-reload invalidation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dale Bustad authored and Dale Bustad committed Jan 29, 2021
1 parent 11fc4b7 commit 24850bb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/next/build/webpack/plugins/profiling-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,16 @@ export class ProfilingPlugin {
{ attributes: { name: compiler.name } },
(span) => spans.set(compiler, span)
)
this.traceHookPair(
'webpack-watch-run',
compiler.hooks.watchRun,
compiler.hooks.watchClose
)
this.traceHookPair(
'webpack-prepare-env',
compiler.hooks.environment,
compiler.hooks.afterEnvironment
)
this.traceHookPair(
'webpack-invalidated',
compiler.hooks.invalid,
compiler.hooks.done
)
}

traceCompilationHooks(compiler: any) {
Expand Down

0 comments on commit 24850bb

Please sign in to comment.