Skip to content

Commit f279d80

Browse files
committed
update readme
1 parent 49474fe commit f279d80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ The Svelte compiler optionally takes a second argument, an object of configurati
8383
| `css` | `true`, `false` | Whether to include code to inject your component's styles into the DOM. | `true` |
8484
| `globals` | `object`, `function` | When outputting to the `'umd'`, `'iife'` or `'eval'` formats, an object or function mapping the names of imported dependencies to the names of global variables. | `{}` |
8585
| `legacy` | `boolean` | Ensures compatibility with very old browsers, at the cost of some extra code |
86-
| `onerror` | `function` | Specify a callback for when Svelte encounters an error while compiling the component. | (exception is thrown) |
87-
| `onwarn` | `function` | Specify a callback for when Svelte encounters a non-fatal warning while compiling the component. | (warning is logged to console) |
86+
| `onerror` | `function` | Specify a callback for when Svelte encounters an error while compiling the component. Passed two arguments: the error object, and another function that is Svelte's default onerror handling. | (exception is thrown) |
87+
| `onwarn` | `function` | Specify a callback for when Svelte encounters a non-fatal warning while compiling the component. Passed two arguments: the warning object, and another function that is Svelte's default onwarn handling. | (warning is logged to console) |
8888

8989
## Example/starter repos
9090

0 commit comments

Comments
 (0)