Interface ModifiableJSPackage

All Superinterfaces:
JSBundleObject, JSPackage

public interface ModifiableJSPackage extends 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 Details

    • addJSModule

      void addJSModule(JSModule jsModule)
    • removeJSModule

      void removeJSModule(JSModule jsModule)
    • replaceJSModule

      void replaceJSModule(JSModule jsModule)