Skip to content

Commit ff15e76

Browse files
committed
Code review changes
1 parent 406fb85 commit ff15e76

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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\.ts$/));
560+
let allDefinitionFiles = Object.keys(instance.files).filter(filePath => /\.d\.ts$/.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
}

0 commit comments

Comments
 (0)