mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix: invalid all require.cache in watching
This commit is contained in:
parent
2f372c9644
commit
5ece7127c5
@ -460,8 +460,7 @@ export default class Builder {
|
|||||||
/* istanbul ignore if */
|
/* istanbul ignore if */
|
||||||
if (err) return reject(err)
|
if (err) return reject(err)
|
||||||
// not keep modified or deleted items in Vue.prototype
|
// not keep modified or deleted items in Vue.prototype
|
||||||
delete require.cache[require.resolve('vue')]
|
Object.keys(require.cache).forEach(key => delete require.cache[key])
|
||||||
delete require.cache[require.resolve('vue-router')]
|
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user