Skip to content

Commit

Permalink
fix: memory leak in dev mode (#5399)
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkdo authored Mar 27, 2019
1 parent c009a20 commit 04ddcac
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/webpack/src/config/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 04ddcac

Please sign in to comment.