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 */
|
||||
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')]
|
||||
Object.keys(require.cache).forEach(key => delete require.cache[key])
|
||||
})
|
||||
)
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user