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 a80cf18 commit fcfb099Copy full SHA for fcfb099
packages/@vue/cli-plugin-typescript/index.js
@@ -26,6 +26,7 @@ module.exports = (api, options) => {
26
.rule('vue')
27
.use('vue-loader')
28
.tap(options => {
29
+ options.loaders = options.loaders || {}
30
options.loaders.ts = [
31
{
32
loader: 'cache-loader',
@@ -48,11 +49,9 @@ module.exports = (api, options) => {
48
49
.loader('babel-loader')
50
vueLoader
51
- if (api.hasPlugin('babel')) {
52
- options.loaders.ts.push({
53
- loader: 'babel-loader'
54
- })
55
- }
+ options.loaders.ts.push({
+ loader: 'babel-loader'
+ })
56
return options
57
})
58
}
0 commit comments