From 5bb4a265947ee05927a4ebc78019b457e6e0f9c3 Mon Sep 17 00:00:00 2001 From: younes meliani Date: Mon, 14 Feb 2022 18:06:21 +0100 Subject: [PATCH] Fix a typo in 'Direct plugin communication' code example --- docs/05-plugin-development.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/05-plugin-development.md b/docs/05-plugin-development.md index 88e4684c12d..9beecebc79f 100644 --- a/docs/05-plugin-development.md +++ b/docs/05-plugin-development.md @@ -1277,7 +1277,7 @@ function dependentPlugin() { name: 'dependent', buildStart({ plugins }) { const parentName = 'parent'; - const parentPlugin = options.plugins.find(plugin => plugin.name === parentName); + const parentPlugin = plugins.find(plugin => plugin.name === parentName); if (!parentPlugin) { // or handle this silently if it is optional throw new Error(`This plugin depends on the "${parentName}" plugin.`);