PluginManager 'add' / 'isValidConfig' plugin configuration.

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

Properties

instance?: 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).

options?: object

Defines an object of options for the plugin.

target?: 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.