Skip to content

Commit 5bd96df

Browse files
authored
Fix a typo in 'Direct plugin communication' code example (#4406)
1 parent 69eb721 commit 5bd96df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/05-plugin-development.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1277,7 +1277,7 @@ function dependentPlugin() {
12771277
name: 'dependent',
12781278
buildStart({ plugins }) {
12791279
const parentName = 'parent';
1280-
const parentPlugin = options.plugins.find(plugin => plugin.name === parentName);
1280+
const parentPlugin = plugins.find(plugin => plugin.name === parentName);
12811281
if (!parentPlugin) {
12821282
// or handle this silently if it is optional
12831283
throw new Error(`This plugin depends on the "${parentName}" plugin.`);

0 commit comments

Comments
 (0)