Skip to content

Commit

Permalink
fix(nuxt): don't call timeEnd unless we're debugging (#20424)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Apr 20, 2023
1 parent 0d10e97 commit 8b7df05
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/nuxt/src/core/builder.ts
Expand Up @@ -75,7 +75,9 @@ async function watch (nuxt: Nuxt) {
]
})
watcher.then((subscription) => {
console.timeEnd('[nuxt] builder:parcel:watch')
if (nuxt.options.debug) {
console.timeEnd('[nuxt] builder:parcel:watch')
}
nuxt.hook('close', () => subscription.unsubscribe())
})
}
Expand Down

0 comments on commit 8b7df05

Please sign in to comment.