Throw on warnings by default; Add `onWarning` loader option