Skip to content

Commit 47ac554

Browse files
author
Omar Gaayeb
authored
Fix in webpack-and-typescript.md code example
Hi, This fixes duplicate module rules. The intention I suppose was to have a rule for `.js` and one for `.ts(x)` Cheers!
1 parent 70312e8 commit 47ac554

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/guides/webpack-and-typescript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ module.exports = {
116116
},
117117
{
118118
enforce: 'pre',
119-
test: /\.js$/,
119+
test: /\.tsx?$/,
120120
use: "source-map-loader"
121121
}
122122
]

0 commit comments

Comments
 (0)