funcunit
Version:
<!-- @hide title
34 lines (27 loc) • 499 B
JavaScript
var System = require("@loader");
var steal = require("@steal");
System.liveReloadInstalled = true;
function updateEnvs() {
System.config({
envs: {
"window-staging": {
map: {
mod: "other"
}
}
}
});
}
steal.done().then(function(){
setTimeout(function(){
updateEnvs();
// Simulate live-reload's behavior
callbacks.forEach(function(cb){
cb();
});
}, 600);
});
var callbacks = [];
module.exports = function(moduleName, callback){
callbacks.push(callback);
};