Skip to content

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.

Released under the MIT License.