Skip to content

Commit fe567af

Browse files
committed
chore: make TS process only TS files
1 parent 9a7d9dc commit fe567af

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/index.cjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,11 @@ class ScratchWebpackConfigBuilder {
214214
] : []
215215
),
216216
...(enableTs ? [{
217-
test: enableReact ? /\.[cm]?[jt]sx?$/ : /\.[cm]?[jt]s$/,
217+
test: enableReact ? /\.[cm]?tsx?$/ : /\.[cm]?ts$/,
218218
loader: 'ts-loader',
219219
exclude: [/node_modules/]
220220
}] : []),
221221
],
222-
223222
},
224223
plugins: [
225224
new webpack.ProvidePlugin({

0 commit comments

Comments
 (0)