mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-17 14:11:07 +00:00
fix: memory leak in dev mode (#5399)
This commit is contained in:
parent
c009a202b8
commit
04ddcac4f9
@ -28,6 +28,13 @@ export default class WebpackServerConfig extends WebpackBaseConfig {
|
|||||||
whitelist.push(new RegExp(escapeRegExp(posixModule)))
|
whitelist.push(new RegExp(escapeRegExp(posixModule)))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Bundle vue js for avoiding single shared Vue instance
|
||||||
|
const { runInNewContext } = this.buildContext.options.render.bundleRenderer
|
||||||
|
if (runInNewContext === true) {
|
||||||
|
whitelist.push('vue')
|
||||||
|
}
|
||||||
|
|
||||||
return whitelist
|
return whitelist
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user