Commit 64e7653
fix(cli): pass pluginInstances to getPluginConfig to support non-array plugins (#1246)
Passing the raw `plugins` array to `getPluginConfig` caused a TypeError
when `plugins` contained non-array entries (e.g. function plugins), as
`data[1]` would be undefined. Since `pluginInstances` is already filtered
to only `docusaurus-plugin-openapi-docs` tuples, passing it instead is
both correct and safe. Also prevents incorrect matches when another plugin
shares the same ID as the openapi-docs plugin.
Fixes #1246
Closes #1263
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 0c42d4d commit 64e7653
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
764 | 764 | | |
765 | 765 | | |
766 | 766 | | |
767 | | - | |
| 767 | + | |
768 | 768 | | |
769 | 769 | | |
770 | 770 | | |
| |||
835 | 835 | | |
836 | 836 | | |
837 | 837 | | |
838 | | - | |
| 838 | + | |
839 | 839 | | |
840 | 840 | | |
841 | 841 | | |
| |||
933 | 933 | | |
934 | 934 | | |
935 | 935 | | |
936 | | - | |
| 936 | + | |
937 | 937 | | |
938 | 938 | | |
939 | 939 | | |
| |||
992 | 992 | | |
993 | 993 | | |
994 | 994 | | |
995 | | - | |
| 995 | + | |
996 | 996 | | |
997 | 997 | | |
998 | 998 | | |
| |||
0 commit comments