Correct README to use onwarn

Seems like it is public API: https://github.com/sveltejs/svelte/blob/master/compiler/index.js#L8.
pull/116/head
Nico Rehwaldt 8 years ago committed by GitHub
parent 5770048855
commit 6131f69fc3

@ -43,7 +43,7 @@ const { code, map } = svelte.compile( source, {
console.error( err.message );
},
onwarning: warning => {
onwarn: warning => {
console.warn( warning.message );
}
});

Loading…
Cancel
Save