Skip to content

Commit 9b0abcd

Browse files
author
Luca Forstner
authored
fix(nextjs): Instrument route handlers with jsx and tsx file extensions (#9362)
1 parent a02c3e6 commit 9b0abcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nextjs/src/config/webpack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ export function constructWebpackConfigFunction(
182182
const normalizedAbsoluteResourcePath = normalizeLoaderResourcePath(resourcePath);
183183
return (
184184
normalizedAbsoluteResourcePath.startsWith(appDirPath + path.sep) &&
185-
!!normalizedAbsoluteResourcePath.match(/[\\/]route\.(js|ts)$/)
185+
!!normalizedAbsoluteResourcePath.match(/[\\/]route\.(js|jsx|ts|tsx)$/)
186186
);
187187
};
188188

0 commit comments

Comments
 (0)