Skip to content

Function: configurePlugins()

configurePlugins(plugins, options): readonly AnyPlugin[]

Defined in: packages/core/src/options.ts:13

Applies options[plugin.id] to each plugin through its configure(). Plugins without an entry are returned as they are. An entry for an unknown plugin id, or for a plugin without options, is an error: silently ignoring it would hide a typo in a security-relevant constraint.

Parameters

plugins

readonly AnyPlugin[]

options

Readonly<Record<string, unknown>> | null | undefined

Returns

readonly AnyPlugin[]