From 5282c94c9d690a9aac01dc8ea879e0ae535f43e2 Mon Sep 17 00:00:00 2001 From: "Alexis H. Munsayac" Date: Wed, 24 Jan 2024 16:49:27 +0800 Subject: [PATCH] Update index.ts --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {