0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-29 16:36:44 +01:00

Correct README to use onwarn

Seems like it is public API: https://github.com/sveltejs/svelte/blob/master/compiler/index.js#L8.
This commit is contained in:
Nico Rehwaldt 2016-12-04 21:28:27 +01:00 committed by GitHub
parent 5770048855
commit 6131f69fc3

View File

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