diff --git a/docs/05-plugin-development.md b/docs/05-plugin-development.md index f99222892c7..090231ab9af 100644 --- a/docs/05-plugin-development.md +++ b/docs/05-plugin-development.md @@ -64,6 +64,12 @@ export default ({ The name of the plugin, for use in error messages and warnings. +#### `version?` + +**Type:** `string | undefined` + +The version of the plugin, for use in inter-plugin communication scenarios. + ### Build Hooks To interact with the build process, your plugin object includes "hooks". Hooks are functions which are called at various stages of the build. Hooks can affect how a build is run, provide information about a build, or modify a build once complete. There are different kinds of hooks: diff --git a/src/rollup/types.d.ts b/src/rollup/types.d.ts index 103e6b6e9e5..fa83d22b987 100644 --- a/src/rollup/types.d.ts +++ b/src/rollup/types.d.ts @@ -456,6 +456,7 @@ export interface OutputPlugin Partial<{ [K in AddonHooks]: ObjectHook }> { cacheKey?: string; name: string; + version?: string; } export interface Plugin extends OutputPlugin, Partial {