Fix module search warnings

This commit is contained in:
Neodymium 2023-04-11 23:09:55 -07:00
parent 900df71f20
commit e472d5f719
1 changed files with 2 additions and 2 deletions

View File

@ -164,9 +164,9 @@ export default class WebpackModules {
try {module = modules[index]} catch {continue;};
const {exports} = module;
if (!exports || exports === window || exports === document.documentElement) continue;
if (!exports || exports === window || exports === document.documentElement || exports[Symbol.toStringTag] === "DOMTokenList") continue;
if (typeof(exports) === "object" && searchExports && exports[Symbol.toStringTag] !== "DOMTokenList") {
if (typeof(exports) === "object" && searchExports && !exports.TypedArray) {
for (const key in exports) {
let foundModule = null;
let wrappedExport = null;