Skip to content

Commit 37f0765

Browse files
committed
build: allow js extension to resolve to any ts or tsx extension
1 parent 8bb9bc6 commit 37f0765

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/next.config.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ const nextConfig = withAnalyzer(
142142

143143
// https://github.com/vercel/next.js/issues/59744#issuecomment-2442603644
144144
config.resolve.extensionAlias = {
145-
".js": [".js", ".ts"],
145+
".js": [".js", ".ts", ".jsx", ".tsx"],
146146
".mjs": [".mjs", ".mts"],
147147
".cjs": [".cjs", ".cts"],
148148
".jsx": [".jsx", ".tsx"],

0 commit comments

Comments
 (0)