PluginConfig: {
    instance?: object;
    name: string;
    options?: object;
    target?: string | URL;
}

PluginManager 'add' / 'isValidConfig' plugin configuration.

Type declaration

  • Optionalinstance?: object

    Defines an existing object instance to use as the plugin.

  • name: string

    Defines the name of the plugin; if no target entry is present the name doubles as the target (please see target).

  • Optionaloptions?: object

    Defines an object of options for the plugin.

  • Optionaltarget?: string | URL

    Defines the target Node module to load or defines a local file (full path or relative to current working directory to load. Target may also be a file URL / string or in the browser a web URL.