Skip to content
This repository was archived by the owner on Feb 25, 2022. It is now read-only.

Commit

Permalink
fix: ts-loader add .tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
zoy-l committed Apr 2, 2021
1 parent 5be86d5 commit 0dd60d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/zmi-webpack/src/applyLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ async function applyLoader(options: IPenetrateOptions) {
if (isTypescript) {
WConifg.module
.rule('vue-ts')
.test(/\.ts$/)
.test(/\.(ts|tsx)$/)
.use('ts-loader')
.loader(require.resolve('ts-loader'))
.options({
Expand Down

0 comments on commit 0dd60d1

Please sign in to comment.