diff --git a/config/processInvariants.ts b/config/processInvariants.ts index 6534f36aa8a..13f8e275016 100644 --- a/config/processInvariants.ts +++ b/config/processInvariants.ts @@ -196,9 +196,10 @@ function transform(code: string, relativeFilePath: string) { }); if ( - !["utilities/globals/index.js", "config/jest/setup.js"].includes( - relativeFilePath - ) + ![ + osPathJoin("utilities", "globals", "index.js"), + osPathJoin("config", "jest", "setup.js"), + ].includes(relativeFilePath) ) recast.visit(ast, { visitIdentifier(path) {