diff --git a/sites/svelte-5-preview/src/lib/Output/ErrorOverlay.svelte b/sites/svelte-5-preview/src/lib/Output/ErrorOverlay.svelte index 144785b0af..d568d22fc5 100644 --- a/sites/svelte-5-preview/src/lib/Output/ErrorOverlay.svelte +++ b/sites/svelte-5-preview/src/lib/Output/ErrorOverlay.svelte @@ -1,15 +1,15 @@
-

Error compiling {error.filename ?? 'component'}

+

{title}

{error.message}
{#if error.start} diff --git a/sites/svelte-5-preview/src/lib/Output/Viewer.svelte b/sites/svelte-5-preview/src/lib/Output/Viewer.svelte index ece6f3bb5d..895ccab71c 100644 --- a/sites/svelte-5-preview/src/lib/Output/Viewer.svelte +++ b/sites/svelte-5-preview/src/lib/Output/Viewer.svelte @@ -42,10 +42,6 @@ let ready = false; let inited = false; - let log_height = 90; - /** @type {number} */ - let prev_height; - /** @type {import('./console/console').Log} */ let last_console_event; @@ -234,15 +230,6 @@ } } - function on_toggle_console() { - if (log_height < 90) { - prev_height = log_height; - log_height = 90; - } else { - log_height = prev_height || 45; - } - } - function clear_logs() { current_log_group = logs = []; } @@ -271,7 +258,12 @@ > {#if $bundle?.error} - + + {:else if error} + {/if}
{/snippet} @@ -295,9 +287,7 @@
- {#if error} - - {:else if status || !$bundle} + {#if status || !$bundle} {status || 'loading Svelte compiler...'} {/if}