public interface ModifiableJSPackage extends JSPackage
JSPackage
that allows addition of new JSModule
s.
Note that adding a JSModule
to a ModifiableJSPackage
doesn't
update the NPMRegistry
by itself, thus the new module won't be
visible until the registry updates its caches.
If you want the module to be visible immediately, use the
NPMRegistry#registerJSModule(JSPackage, String, Collection, String, String)
method instead that invokes addJSModule(JSModule)
under
the hood and triggers a registry cache update.
NPMRegistry#registerJSModule(JSPackage, String, Collection, String, String)
Modifier and Type | Method and Description |
---|---|
void |
addJSModule(JSModule jsModule) |
void |
removeJSModule(JSModule jsModule) |
void |
replaceJSModule(JSModule jsModule) |
getJSBundle, getJSModule, getJSModuleAliases, getJSModules, getJSPackageDependencies, getJSPackageDependency, getMainModuleName, getResolvedId, getResourceURL, getVersion
getId, getName