remove stray `onwarn` reference in readme

pull/1953/head
Conduitry 7 years ago
parent f1f9e38ee1
commit 1823ec206b

@ -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'
});
```

Loading…
Cancel
Save