Remove empty preload updates
This commit is contained in:
parent
979ca623f1
commit
817f2da0df
1 changed files with 7 additions and 1 deletions
|
@ -433,7 +433,9 @@ ${loaderJs}
|
|||
case 'clearOutput':
|
||||
{
|
||||
let output = document.getElementById(id);
|
||||
document.getElementById(id).parentNode.removeChild(output);
|
||||
if (output && output.parentNode) {
|
||||
document.getElementById(id).parentNode.removeChild(output);
|
||||
}
|
||||
// @TODO remove observer
|
||||
}
|
||||
break;
|
||||
|
@ -752,6 +754,10 @@ ${loaderJs}
|
|||
}
|
||||
});
|
||||
|
||||
if (!resources.length) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.kernelRootsCache = [...extensionLocations, ...this.kernelRootsCache];
|
||||
this._updatePreloads(resources);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue