Interface ModifiableJSPackage
- All Superinterfaces:
JSBundleObject,JSPackage
A
JSPackage that allows addition of new JSModules.
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.
- See Also:
-
NPMRegistry#registerJSModule(JSPackage, String, Collection, String, String)
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddJSModule(JSModule jsModule) voidremoveJSModule(JSModule jsModule) voidreplaceJSModule(JSModule jsModule) Methods inherited from interface com.liferay.frontend.js.loader.modules.extender.npm.JSBundleObject
getId, getNameMethods inherited from interface com.liferay.frontend.js.loader.modules.extender.npm.JSPackage
getJSBundle, getJSModule, getJSModuleAliases, getJSModules, getJSPackageDependencies, getJSPackageDependency, getMainModuleName, getResolvedId, getResourceURL, getVersion
-
Method Details
-
addJSModule
-
removeJSModule
-
replaceJSModule
-