Commit ae71b0a
authored
fix: remove eggPlugin missing warning from egg_loader (#5815)
The `eggPlugin` field in `package.json` is no longer required since
plugins now use `definePluginFactory()` to declare their config.
Remove the noisy warning that fires for every plugin loaded via the
`package` pattern:
```
WARN [@eggjs/core/egg_loader] pkg.eggPlugin is missing in .../node_modules/@eggjs/redis/package.json
```
This warning was originally useful for egg v2/v3 plugins that relied on
`eggPlugin` in `package.json` for dependency resolution. With v4's
`definePluginFactory()`, plugin metadata is declared in code instead.
[skip ci]
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Bug Fixes**
* Reduced unnecessary warning messages during plugin configuration
loading.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent 97a0339 commit ae71b0a
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
633 | | - | |
634 | 633 | | |
635 | | - | |
| 634 | + | |
| 635 | + | |
636 | 636 | | |
637 | 637 | | |
638 | 638 | | |
| 639 | + | |
639 | 640 | | |
640 | 641 | | |
641 | 642 | | |
| |||
0 commit comments