Skip to content

Commit

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

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

Expand Down

0 comments on commit df5c622

Please sign in to comment.