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