Appearance
Are you an LLM? You can read better optimized documentation at /options/onwarn.md for this page in Markdown format
onwarn
类型:
(warning: RollupLog, defaultHandler: (warning: RollupLogWithString | (() => RollupLogWithString)) => void) => void¥Type:
(warning: RollupLog, defaultHandler: (warning: RollupLogWithString | (() => RollupLogWithString)) => void) => void可选:是 ✅
¥Optional: Yes ✅
已弃用
这是一个遗留 API。为了更好地控制所有日志类型,请考虑使用 onLog。
¥This is a legacy API. Consider using onLog instead for better control over all log types.
自定义处理构建过程中的警告。
¥Custom handler for warnings during the build process.