From 6131f69fc3de9200ddea66f6ac7af233514c24ca Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Sun, 4 Dec 2016 21:28:27 +0100 Subject: [PATCH] Correct README to use onwarn Seems like it is public API: https://github.com/sveltejs/svelte/blob/master/compiler/index.js#L8. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 16490fecf3..f374b13348 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ const { code, map } = svelte.compile( source, { console.error( err.message ); }, - onwarning: warning => { + onwarn: warning => { console.warn( warning.message ); } });