mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
fix(dev-watching): mixins not removed after function changed or deleted
This commit is contained in:
parent
adc7260c76
commit
b9268df91b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user