Skip to content

Commit d71452e

Browse files
committed
also add dev mode toggle for compiler options
1 parent 70828f9 commit d71452e

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

sites/svelte-5-preview/src/lib/Output/CompilerOptions.svelte

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<!-- svelte-ignore a11y-label-has-associated-control -->
22
<script>
33
import { get_repl_context } from '$lib/context.js';
4+
import Checkbox from '../Checkbox.svelte';
45
56
const { compile_options } = get_repl_context();
67
</script>
@@ -16,6 +17,12 @@
1617
<input id="server" type="radio" bind:group={$compile_options.generate} value="server" />
1718
<label for="server"><span class="string">"server"</span>,</label>
1819
</div>
20+
21+
<label class="option">
22+
<span class="key">dev:</span>
23+
<Checkbox bind:checked={$compile_options.dev} />
24+
<span class="boolean">{$compile_options.dev}</span>,
25+
</label>
1926
});
2027
</div>
2128

sites/svelte-5-preview/src/lib/Repl.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@
7676
7777
/** @type {import('svelte/compiler').CompileOptions} */
7878
const DEFAULT_COMPILE_OPTIONS = {
79-
generate: 'client'
79+
generate: 'client',
80+
dev: false
8081
};
8182
8283
/** @type {Map<string, import('@codemirror/state').EditorState>} */

0 commit comments

Comments
 (0)