From b5e4c5afdbc7007fb4a929130c2a5cc38c720605 Mon Sep 17 00:00:00 2001 From: Mike Mazmanyan Date: Mon, 17 Oct 2016 09:48:28 -0400 Subject: [PATCH] Fixes #321 Reverting old change which has broken webpack hot module reloading. --- index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.ts b/index.ts index 017bff30c..5e9e6c38b 100644 --- a/index.ts +++ b/index.ts @@ -527,8 +527,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 => {