diff --git a/src/index.ts b/src/index.ts index 2eb3480..d257712 100644 --- a/src/index.ts +++ b/src/index.ts @@ -260,7 +260,7 @@ export default function solidPlugin(options: Partial = {}): Plugin { }, configResolved(config) { - needHmr = config.command === 'serve' && config.mode !== 'production' && (options.hot !== false || !options.refresh.disabled); + needHmr = config.command === 'serve' && config.mode !== 'production' && (options.hot !== false && !options.refresh.disabled); }, resolveId(id) {