diff --git a/packages/svelte/tests/runtime-legacy/shared.ts b/packages/svelte/tests/runtime-legacy/shared.ts index 40c9d62a39..2e540aefed 100644 --- a/packages/svelte/tests/runtime-legacy/shared.ts +++ b/packages/svelte/tests/runtime-legacy/shared.ts @@ -141,6 +141,8 @@ async function common_setup(cwd: string, runes: boolean | undefined, config: Run const compileOptions: CompileOptions = { generate: 'client', rootDir: cwd, + dev: process.env.HMR ? true : undefined, + hmr: process.env.HMR ? true : undefined, ...config.compileOptions, immutable: config.immutable, accessors: 'accessors' in config ? config.accessors : true,