mirror of
https://github.com/nuxt/nuxt.git
synced 2025-03-09 03:03:18 +00:00
fix(nuxt): don't call timeEnd
unless we're debugging (#20424)
This commit is contained in:
parent
0d10e9734b
commit
8b7df05ff0
@ -75,7 +75,9 @@ async function watch (nuxt: Nuxt) {
|
|||||||
]
|
]
|
||||||
})
|
})
|
||||||
watcher.then((subscription) => {
|
watcher.then((subscription) => {
|
||||||
console.timeEnd('[nuxt] builder:parcel:watch')
|
if (nuxt.options.debug) {
|
||||||
|
console.timeEnd('[nuxt] builder:parcel:watch')
|
||||||
|
}
|
||||||
nuxt.hook('close', () => subscription.unsubscribe())
|
nuxt.hook('close', () => subscription.unsubscribe())
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user