webpack/test/hotCases/update.js

11 lines
213 B
JavaScript
Raw Normal View History

2016-06-29 20:42:21 +08:00
module.exports = function(done, options, callback) {
return function(stats) {
2018-01-25 06:26:31 +08:00
module.hot.check(options || true).then(() => {
if(callback)
callback(stats);
2018-01-25 06:26:31 +08:00
}).catch((err) => {
2015-11-01 23:28:19 +08:00
done(err);
2015-11-01 23:11:35 +08:00
});
}
};