Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
Blazor WebAssembly AOT is promising, but in real-world production apps:
Reflection breaks AOT builds (generic components, dynamic model binding, validators, etc.)
System.Text.Json relies heavily on reflection and requires manual source generators
Trimming is fragile and runtime failures often occur only in the browser
Third-party libraries like Syncfusion and MudBlazor have insufficient trimming documentation
These issues make it hard to use AOT safely in production.
Describe the solution you'd like
Better automatic reflection analysis for components
Default Blazor-friendly JSON source generation
Build-time diagnostics for trimmed types/members
Clear trimming guidance and examples for third-party libraries
Official AOT + trimming presets (Conservative / Balanced / Aggressive)
Additional context
Improving these areas would make AOT more reliable, reduce runtime errors, and encourage production adoption of Blazor WASM AOT.
👍 React with 👍 3nagytam, hagaddour and bagchiabhishek