Skip to content

Commit 2817af4

Browse files
Achim Krügerskipjack
authored andcommitted
docs(guides): add resolve.extensions to typescript.md (#1341)
Otherwise it's not possible to resolve imports in the entry file from other .ts or .tsx files
1 parent 5a448d5 commit 2817af4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

content/guides/typescript.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ module.exports = {
6262
}
6363
]
6464
},
65+
resolve: {
66+
extensions: [".tsx", ".ts", ".js"]
67+
},
6568
output: {
6669
filename: 'bundle.js',
6770
path: __dirname

0 commit comments

Comments
 (0)