Skip to content

Commit

Permalink
Revert back to original method that worked, tests may need updating
Browse files Browse the repository at this point in the history
  • Loading branch information
tbranyen committed Jun 3, 2017
1 parent aa0d2aa commit f7ac10b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ Object.defineProperty(LiveReloadPlugin.prototype, 'isRunning', {
});

LiveReloadPlugin.prototype.start = function start(watching, cb) {
this.compilation = watching;
var port = this.port;
var quiet = this.quiet;
if (servers[port]) {
Expand All @@ -55,7 +54,7 @@ LiveReloadPlugin.prototype.start = function start(watching, cb) {
};

LiveReloadPlugin.prototype.done = function done(stats) {
var timestamps = this.compilation ? this.compilation.fileTimestamps : {};
var timestamps = stats.compilation ? stats.compilation.fileTimestamps : {};

this.changedFiles = Object.keys(timestamps).filter(function(watchfile) {
return this.startTime < Math.ceil(statSync(watchfile).mtime);
Expand Down

0 comments on commit f7ac10b

Please sign in to comment.