Skip to content

Commit cd02080

Browse files
committed
Gardening
1 parent 9974d02 commit cd02080

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TypeScriptWebpackHost.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ TypeScriptWebpackHost.prototype.log = function log(message) {
112112
/**
113113
* Return an array of import declarations found in source file.
114114
*/
115-
TypeScriptWebpackHost.prototype.findImportDeclarations = function findImportDeclarations(filename) {
115+
TypeScriptWebpackHost.prototype._findImportDeclarations = function _findImportDeclarations(filename) {
116116
var node = this._services.getSourceFile(filename);
117117
var result = [];
118118
visit(node);
@@ -154,7 +154,7 @@ TypeScriptWebpackHost.prototype._readFileAndAdd = function _readFileAndAdd(filen
154154
};
155155

156156
TypeScriptWebpackHost.prototype._addDependencies = function(resolver, filename) {
157-
var dependencies = this.findImportDeclarations(filename).map(function(dep) {
157+
var dependencies = this._findImportDeclarations(filename).map(function(dep) {
158158
return resolver(path.dirname(filename), dep).then(function(filename) {
159159
var added = this._readFileAndAdd(filename);
160160
// This is d.ts which doesn't go through typescript-loader separately so

0 commit comments

Comments
 (0)