Skip to content

Commit

Permalink
Fixes #321 (#322)
Browse files Browse the repository at this point in the history
Reverting old change which has broken webpack hot module reloading.
  • Loading branch information
Mike Mazmanyan authored and johnnyreilly committed Oct 17, 2016
1 parent 6e77a43 commit 5bd4b04
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -562,8 +562,7 @@ function ensureTypeScriptInstance(loaderOptions: LoaderOptions, loader: any): {

// manually update changed files
loader._compiler.plugin("watch-run", (watching, cb) => {
var mtimes = watching.compiler.fileTimestamps ||
watching.compiler.watchFileSystem.watcher.mtimes;
var mtimes = watching.compiler.watchFileSystem.watcher.mtimes;
Object.keys(mtimes)
.filter(filePath => !!filePath.match(/\.tsx?$|\.jsx?$/))
.forEach(filePath => {
Expand Down

0 comments on commit 5bd4b04

Please sign in to comment.