diff --git a/src/compiler/sys.ts b/src/compiler/sys.ts index ce31988b504..03d517476cd 100644 --- a/src/compiler/sys.ts +++ b/src/compiler/sys.ts @@ -199,7 +199,11 @@ var sys: System = (function () { close() { _fs.unwatchFile(fileName, fileChanged); } }; - function fileChanged() { + function fileChanged(curr:any, prev:any) { + if (+curr.mtime <= +prev.mtime) { + return; + } + callback(fileName); }; },