We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
jsx
tsx
1 parent a02c3e6 commit 9b0abcdCopy full SHA for 9b0abcd
packages/nextjs/src/config/webpack.ts
@@ -182,7 +182,7 @@ export function constructWebpackConfigFunction(
182
const normalizedAbsoluteResourcePath = normalizeLoaderResourcePath(resourcePath);
183
return (
184
normalizedAbsoluteResourcePath.startsWith(appDirPath + path.sep) &&
185
- !!normalizedAbsoluteResourcePath.match(/[\\/]route\.(js|ts)$/)
+ !!normalizedAbsoluteResourcePath.match(/[\\/]route\.(js|jsx|ts|tsx)$/)
186
);
187
};
188
0 commit comments