Skip to content

Commit

Permalink
fix: fix ts/tsx rule separation
Browse files Browse the repository at this point in the history
close #1315
  • Loading branch information
yyx990803 committed May 19, 2018
1 parent 07ac887 commit 41a56f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/@vue/cli-plugin-typescript/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ module.exports = (api, {
})
// make sure to append TSX suffix
tsxRule.use('ts-loader').loader('ts-loader').tap(options => {
options = Object.assign({}, options)
delete options.appendTsSuffixTo
options.appendTsxSuffixTo = [/\.vue$/]
return options
Expand Down

0 comments on commit 41a56f1

Please sign in to comment.