mirror of
https://github.com/thinkjs/thinkjs.git
synced 2026-01-25 14:42:47 +00:00
fix eslint error
This commit is contained in:
parent
a97840397a
commit
07a3e59e3d
@ -497,7 +497,7 @@ export default class {
|
||||
let reloadInstance = this.getReloadInstance(outPath);
|
||||
this.compileCallback = changedFiles => {
|
||||
reloadInstance.clearFilesCache(changedFiles);
|
||||
}.bind(this);
|
||||
};
|
||||
|
||||
let WatchCompile = require('./util/watch_compile.js');
|
||||
let instance = new WatchCompile(srcPath, outPath, log, this.compileCallback);
|
||||
|
||||
@ -157,6 +157,6 @@ export default class extends think.base {
|
||||
}
|
||||
}catch(e){}
|
||||
return exportsObj;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
@ -123,8 +123,8 @@ export default class extends think.base {
|
||||
}
|
||||
});
|
||||
//notify auto reload service to clear file cache
|
||||
if(changedFiles.length){
|
||||
this.callback && this.callback(changedFiles);
|
||||
if(changedFiles.length && this.callback){
|
||||
this.callback(changedFiles);
|
||||
}
|
||||
setTimeout(this.compile.bind(this), 100);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user