[PCCompatCheck] Add reactUtils ignoring

This commit is contained in:
Ducko 2021-06-07 18:03:58 +01:00 committed by Alyxia Sother
parent e18c019720
commit c999320da0
No known key found for this signature in database
GPG key ID: 355968D14144B739

View file

@ -69,6 +69,14 @@ for (const jsFile of glob.sync(`${cloneDir}/**/*.js`).concat(glob.sync(`${cloneD
}
}
if (requirePath === 'powercord/util') {
const webpackJS = readFileSync(join(__dirname, '..', '..', 'GooseMod', 'src', 'util', 'react.js'), 'utf8');
if (webpackJS.includes(`export function ${imp}`)) {
continue;
}
}
if (requirePath === 'powercord/injector') {
continue;
}