diff --git a/src/index.ts b/src/index.ts index b85d4cb..9446759 100644 --- a/src/index.ts +++ b/src/index.ts @@ -290,7 +290,7 @@ export default function solidPlugin(options: Partial = {}): Plugin { }, configResolved(config) { - needHmr = config.command === 'serve' && !config.isProduction && options.hot !== false; + needHmr = config.command === 'serve' && config.mode !== 'production' && options.hot !== false; }, resolveId(id) {