mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
atomic children removal
This commit is contained in:
parent
89f7287356
commit
a354d9761f
@ -5,10 +5,7 @@ export function clearRequireCache(id) {
|
||||
}
|
||||
|
||||
if (entry.parent) {
|
||||
const i = entry.parent.children.findIndex(e => e.id === id)
|
||||
if (i > -1) {
|
||||
entry.parent.children.splice(i, 1)
|
||||
}
|
||||
entry.parent.children = entry.parent.children.filter(e => e.id !== id)
|
||||
}
|
||||
|
||||
for (const child of entry.children) {
|
||||
|
Loading…
Reference in New Issue
Block a user