Skip to content

Commit

Permalink
Fix build error on windows (#11567)
Browse files Browse the repository at this point in the history
  • Loading branch information
asvishnyakov authored Feb 5, 2024
1 parent 8cba16f commit 4c51731
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions config/processInvariants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4c51731

Please sign in to comment.