File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,10 @@ module.exports = function (content) {
78
78
// css: (isServer ? '' : styleLoaderPath + '!') + 'css-loader' + (needCssSourceMap ? '?sourceMap' : ''),
79
79
css : styleLoaderPath ,
80
80
js : scriptLoaderPath + '!' + ( hasBuble ? ( 'buble-loader' + bubleOptions ) : hasBabel ? ( 'babel-loader' + babelOptions ) : '' ) ,
81
+ ts : [ {
82
+ loader : 'ts-loader' ,
83
+ options : { appendTsSuffixTo : [ / \. v u e $ / ] }
84
+ } ] ,
81
85
scss : [ 'sass-loader' ] ,
82
86
sass : [ {
83
87
loader : 'sass-loader' ,
@@ -186,6 +190,11 @@ module.exports = function (content) {
186
190
loader += '!' + templateLoaderPath + '?raw&engine=' + lang + '!'
187
191
}
188
192
}
193
+ if ( type === 'script' ) {
194
+ if ( lang && Array . isArray ( loaders [ lang ] ) ) {
195
+ loader += '!' + stringifyLoaders ( loaders [ lang ] )
196
+ }
197
+ }
189
198
// inject rewriter before css/html loader for
190
199
// extractTextPlugin use cases
191
200
if ( rewriterInjectRE . test ( loader ) ) {
You can’t perform that action at this time.
0 commit comments