File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -557,9 +557,9 @@ function loader(contents) {
557557 this . clearDependencies ( ) ;
558558 this . addDependency ( filePath ) ;
559559
560- let allDefinitionFiles = Object . keys ( instance . files ) . filter ( filePath => ! ! filePath . match ( / \. d \. t s $ / ) ) ;
560+ let allDefinitionFiles = Object . keys ( instance . files ) . filter ( filePath => / \. d \. t s $ / . test ( filePath ) ) ;
561561 allDefinitionFiles . forEach ( this . addDependency . bind ( this ) ) ;
562- this . _module . meta [ 'definitionFileVersions' ] = allDefinitionFiles . map ( filePath => filePath + '@' + instance . files [ filePath ] . version ) ;
562+ this . _module . meta . tsLoaderDefinitionFileVersions = allDefinitionFiles . map ( filePath => filePath + '@' + instance . files [ filePath ] . version ) ;
563563
564564 // Emit Javascript
565565 var output = langService . getEmitOutput ( filePath ) ;
@@ -584,7 +584,7 @@ function loader(contents) {
584584 // Make sure webpack is aware that even though the emitted JavaScript may be the same as
585585 // a previously cached version the TypeScript may be different and therefore should be
586586 // treated as new
587- this . _module . meta [ ' tsLoaderFileVersion' ] = file . version ;
587+ this . _module . meta . tsLoaderFileVersion = file . version ;
588588
589589 callback ( null , outputText , sourceMap )
590590}
You can’t perform that action at this time.
0 commit comments