From c999320da0e9f25de7d5086a9a323224ee44411b Mon Sep 17 00:00:00 2001 From: Oj Date: Mon, 7 Jun 2021 18:03:58 +0100 Subject: [PATCH] [PCCompatCheck] Add reactUtils ignoring --- scripts/pccompatCheck.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/pccompatCheck.js b/scripts/pccompatCheck.js index fd34835..b2ff99b 100644 --- a/scripts/pccompatCheck.js +++ b/scripts/pccompatCheck.js @@ -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; }