We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e98d96 commit 023e022Copy full SHA for 023e022
packages/@vue/cli-plugin-typescript/index.js
@@ -41,7 +41,7 @@ module.exports = (api, options) => {
41
loader: 'ts-loader',
42
options: {
43
transpileOnly: true,
44
- appendTsSuffixTo: [/\.vue$/],
+ appendTsSuffixTo: ['\\.vue$'],
45
// https://github.com/TypeStrong/ts-loader#happypackmode-boolean-defaultfalse
46
happyPackMode: useThreads
47
}
@@ -50,7 +50,7 @@ module.exports = (api, options) => {
50
tsxRule.use('ts-loader').loader('ts-loader').tap(options => {
51
options = Object.assign({}, options)
52
delete options.appendTsSuffixTo
53
- options.appendTsxSuffixTo = [/\.vue$/]
+ options.appendTsxSuffixTo = ['\\.vue$']
54
return options
55
})
56
0 commit comments