There's no value in a user-supplied onerror — it's not like onwarn where you can filter out warnings you don't want to deal with. An error is an error. The user should wrap svelte.compile in a try-catch block.
I think we should noisily deprecate it, and remove it in v3.
There's no value in a user-supplied
onerror— it's not likeonwarnwhere you can filter out warnings you don't want to deal with. An error is an error. The user should wrapsvelte.compilein a try-catch block.I think we should noisily deprecate it, and remove it in v3.