chore: expose HMR option, add disclaimer to compiler options UI

pull/12386/head
Rich Harris 2 years ago
parent ce669987a6
commit 8c8b38c1df

@ -33,9 +33,19 @@
<Checkbox bind:checked={$compile_options.dev} />
<span class="boolean">{$compile_options.dev}</span>,
</label>
<label class="option">
<span class="key">hmr:</span>
<Checkbox bind:checked={$compile_options.hmr} />
<span class="boolean">{$compile_options.hmr}</span>,
</label>
});
</div>
<div class="note">
<p>note: these options affect the JS output tab, but not the bundle that executes in the Result tab.</p>
</div>
<style>
.options {
padding: 0 10px;
@ -132,4 +142,13 @@
border: 1px solid var(--sk-theme-2);
transition: box-shadow 0.2s ease-out;
}
.note {
padding: 10px;
}
.note p {
font-size: 1.4rem;
text-wrap: balance;
}
</style>

@ -78,6 +78,7 @@
const DEFAULT_COMPILE_OPTIONS = {
generate: 'client',
dev: false,
hmr: false,
css: 'external'
};

Loading…
Cancel
Save