Skip to content

Commit

Permalink
fix regexp for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Aug 16, 2022
1 parent 8219791 commit 565a70e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/build/webpack/loaders/utils.ts
Expand Up @@ -39,7 +39,7 @@ export function buildExports(moduleExports: any, isESM: boolean) {
export const clientComponentRegex = new RegExp(
'(' +
`\\.client(\\.(${defaultJsFileExtensions.join('|')}))?|` +
`next/(${nextClientComponents.join('|')})(\\.js)?|` +
`next[\\\\/](${nextClientComponents.join('|')})(\\.js)?|` +
`\\.(${imageExtensions.join('|')})` +
')$'
)
Expand Down

0 comments on commit 565a70e

Please sign in to comment.