|
|
@@ -134,7 +134,7 @@ this.singlefile.lib.helper = this.singlefile.lib.helper || (() => {
|
|
|
}
|
|
|
}
|
|
|
getResourcesInfo(win, doc, element, options, data, elementHidden, computedStyle);
|
|
|
- if (element.shadowRoot && !elementHidden) {
|
|
|
+ if (element.shadowRoot) {
|
|
|
const shadowRootInfo = {};
|
|
|
element.setAttribute(SHADOW_ROOT_ATTRIBUTE_NAME, data.shadowRootsData.length);
|
|
|
data.shadowRootsData.push(shadowRootInfo);
|