From 1823ec206bf157d0f88f71663e514b22e5736f12 Mon Sep 17 00:00:00 2001 From: Conduitry Date: Fri, 22 Feb 2019 00:42:57 -0500 Subject: [PATCH] remove stray `onwarn` reference in readme --- README.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/README.md b/README.md index 0b1348f380..c344c6a1bb 100644 --- a/README.md +++ b/README.md @@ -47,13 +47,7 @@ const { js, css, ast } = svelte.compile(source, { format: 'cjs', // the filename of the source file, used in e.g. generating sourcemaps - filename: 'MyComponent.html', - - // custom warning handler. By default, warnings will be printed to the console. - // Where applicable, the warning object will have `pos`, `loc` and `frame` properties - onwarn: warning => { - console.warn(warning.message); - } + filename: 'MyComponent.html' }); ```