mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(webpack): revert pause/resume
This commit is contained in:
parent
c202893b9e
commit
13331a02b4
@ -226,10 +226,6 @@ export default class Builder {
|
||||
async generateRoutesAndFiles () {
|
||||
consola.debug('Generating nuxt files')
|
||||
|
||||
if (this.bundleBuilder) {
|
||||
this.bundleBuilder.pauseWatch()
|
||||
}
|
||||
|
||||
this.plugins = Array.from(await this.normalizePlugins())
|
||||
|
||||
const templateContext = this.createTemplateContext()
|
||||
@ -249,10 +245,6 @@ export default class Builder {
|
||||
|
||||
await this.compileTemplates(templateContext)
|
||||
|
||||
if (this.bundleBuilder) {
|
||||
this.bundleBuilder.resumeWatch()
|
||||
}
|
||||
|
||||
consola.success('Nuxt files generated')
|
||||
}
|
||||
|
||||
|
@ -216,14 +216,6 @@ export class WebpackBundler {
|
||||
await Promise.all(this.compilersWatching.map(watching => watching.close()))
|
||||
}
|
||||
|
||||
pauseWatch () {
|
||||
this.compilersWatching.forEach(watching => watching.suspend())
|
||||
}
|
||||
|
||||
resumeWatch () {
|
||||
this.compilersWatching.forEach(watching => watching.resume())
|
||||
}
|
||||
|
||||
async close () {
|
||||
if (this.__closed) {
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user