chore: add support for HMR env flag (#12420)

* chore: add support for HMR env flag

* chore: add support for HMR env flag

* chore: add support for HMR env flag

* chore: add support for HMR env flag
pull/12442/head
Dominic Gannaway 2 months ago committed by GitHub
parent f58d60068d
commit d967780c4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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,

Loading…
Cancel
Save