fix(dev-watching): mixins not removed after function changed or deleted

This commit is contained in:
Clark Du 2017-11-30 14:03:25 +08:00 committed by Pooya Parsa
parent adc7260c76
commit b9268df91b

View File

@ -459,6 +459,9 @@ export default class Builder {
compiler.watch(this.options.watchers.webpack, (err) => {
/* istanbul ignore if */
if (err) return reject(err)
// not keep modified or deleted items in Vue.prototype
delete require.cache[require.resolve('vue')]
delete require.cache[require.resolve('vue-router')]
})
)
return