Commit 29dbe1d
authored
chore: lazy-load server plugin modules (kibana-security) (elastic#266614)
## Summary
Lazy-load server plugin implementations via `await import('./plugin')`
(and related entrypoint adjustments) from `server/index.ts`, consistent
with elastic#170856.
The migration in elastic#170856 reduced **startup time by ~4 seconds** in
measured scenarios. **Memory savings were not quantified but are
expected.**
## CODEOWNERS
- `examples/eso_model_version_example` → @elastic/kibana-security
- `packages/kbn-mock-idp-plugin` → @elastic/kibana-security
## Follow-up
- elastic#171080 — add an ESLint rule
so new plugins follow this pattern.
---
**Disclaimer:** This PR was prepared with AI assistance (Cursor /
Claude); please review thoroughly.1 parent a1a05fc commit 29dbe1d
4 files changed
Lines changed: 13 additions & 3 deletions
File tree
- examples/eso_model_version_example/server
- packages/kbn-mock-idp-plugin
- server
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
14 | 20 | | |
15 | 21 | | |
16 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
0 commit comments