Commit fa4f120
committed
fix: mount Svelte example and CLI template with Svelte 5 API
The svelte example and the native init Svelte scaffold both called
new App({ target }), the Svelte 4 component constructor. Svelte 5
removed it, so every checkout of examples/svelte and every freshly
generated Svelte project throws component_api_invalid_new on load.
Switch both to mount(App, { target }) from the svelte package.
Fixes #481 parent 36d295a commit fa4f120
3 files changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
4 | | - | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2589 | 2589 | | |
2590 | 2590 | | |
2591 | 2591 | | |
| 2592 | + | |
2592 | 2593 | | |
2593 | 2594 | | |
2594 | 2595 | | |
2595 | | - | |
| 2596 | + | |
2596 | 2597 | | |
2597 | 2598 | | |
2598 | 2599 | | |
| |||
0 commit comments