An object which is passed into the method a plugin provides for providing a plugin library via IAssetLinkPluginHandle#provideLibrary.
Methods
# provides(libraryObject)
Specify the object for this plugin-provided library.
Usage
library.provides(libraryA);
Parameters:
Name | Type | Description |
---|---|---|
libraryObject |
Object
|
external:Promise
|
the library object to be exposed or a promise that resolves to it. |
# version(rawLibraryVersion)
Specify the version for this plugin-provided library.
Usage
library.version('1.2.3');
Parameters:
Name | Type | Description |
---|---|---|
rawLibraryVersion |
String
|
the semantic version string of the library - defaults to '0.0.1-alpha.1' if this is not called. |