disposeModule
live-reload.disposeModule
Dispose of a module, removing it from the Loader registry.
reload.disposeModule(moduleName)
Remove a module from the Loader registry and call any dispose callbacks registered for the module.
Parameters
-
moduleName
{String}
the name of the module to be disposed
Use
Advanced plugins might want to dispose of modules at arbitrary times and disposeModule allows for that. One example would be if a plugin creates virtual modules and needs to remove them when the parent module is disposed.
Implementation
Implemented by live-reload.