systemjs-hot-reloader-ex
Advanced tools
Comparing version 2.0.1 to 2.0.2
{ | ||
"name": "systemjs-hot-reloader-ex", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "SystemJS / JSPM hot reloader with support of CSS, SCSS, SASS, LESS, Stylus, React and JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -209,7 +209,16 @@ import 'core-js/shim'; | ||
.then(() => this.fixModuleDeps(name)) | ||
.then(() => reload(moduleChain)); | ||
.then(() => { | ||
this.logger.debug(`Calling module ${this.cleanName(name)} __reload() hook`); | ||
return reload(moduleChain); | ||
}); | ||
} | ||
return Promise.resolve() | ||
.then(() => (unload ? unload(moduleChain) : undefined)) | ||
.then(() => { | ||
if (!unload) { | ||
return undefined; | ||
} | ||
this.logger.debug(`Calling module ${this.cleanName(name)} unload() hook`); | ||
return unload(moduleChain); | ||
}) | ||
.then(() => (backup ? this.restoreModuleBackup(backup) : this.deleteModule(name))) | ||
@@ -216,0 +225,0 @@ .then(() => this.importModule(name)); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
56093
690