Are you an LLM? You can read better optimized documentation at /options/onwarn.md for this page in Markdown format
onwarn
- Type:
(warning: RollupLog, defaultHandler: (warning: RollupLogWithString | (() => RollupLogWithString)) => void) => void - Optional: Yes ✅
Deprecated
This is a legacy API. Consider using onLog instead for better control over all log types.
Custom handler for warnings during the build process.