Skip to content

Commit 41a56f1

Browse files
committed
fix: fix ts/tsx rule separation
close #1315
1 parent 07ac887 commit 41a56f1

File tree

1 file changed

+1
-0
lines changed
  • packages/@vue/cli-plugin-typescript

1 file changed

+1
-0
lines changed

packages/@vue/cli-plugin-typescript/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ module.exports = (api, {
5050
})
5151
// make sure to append TSX suffix
5252
tsxRule.use('ts-loader').loader('ts-loader').tap(options => {
53+
options = Object.assign({}, options)
5354
delete options.appendTsSuffixTo
5455
options.appendTsxSuffixTo = [/\.vue$/]
5556
return options

0 commit comments

Comments
 (0)