Skip to content

Commit

Permalink
Fix watchpack breaking API (#482)
Browse files Browse the repository at this point in the history
  • Loading branch information
bancek authored and johnnyreilly committed Feb 22, 2017
1 parent 7a884df commit d0f1375
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export interface WebpackModule {
}

export interface Watcher {
mtimes: number; // a guess
getTimes(): { [filePath: string]: number };
}

export interface WebpackNodeWatchFileSystem {
Expand Down
2 changes: 1 addition & 1 deletion src/watch-run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function makeWatchRun(
instance.modifiedFiles = {};
}

Object.keys(watcher.mtimes)
Object.keys(watcher.getTimes())
.filter(filePath => !!filePath.match(constants.tsTsxJsJsxRegex))
.forEach(filePath => {
filePath = path.normalize(filePath);
Expand Down

0 comments on commit d0f1375

Please sign in to comment.