Skip to content

Commit

Permalink
Fix a typo in 'Direct plugin communication' code example (#4406)
Browse files Browse the repository at this point in the history
  • Loading branch information
younesmln committed Feb 15, 2022
1 parent 69eb721 commit 5bd96df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/05-plugin-development.md
Expand Up @@ -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.`);
Expand Down

0 comments on commit 5bd96df

Please sign in to comment.