mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +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)))
|
||||
}
|
||||
}
|
||||
|
||||
// Bundle vue js for avoiding single shared Vue instance
|
||||
const { runInNewContext } = this.buildContext.options.render.bundleRenderer
|
||||
if (runInNewContext === true) {
|
||||
whitelist.push('vue')
|
||||
}
|
||||
|
||||
return whitelist
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user