Skip to content

Commit

Permalink
regex
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Feb 12, 2025
1 parent df5c622 commit 7e21164
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/next/src/build/babel/loader/get-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,7 @@ function getFreshConfig(
return false
}

if (
filename.includes('/node_modules/') ||
filename.includes('\\node_modules\\')
) {
if (/[/\\]node_modules[/\\]/.test(filename)) {
return false
}

Expand Down

0 comments on commit 7e21164

Please sign in to comment.