From c503f9d3182a4d0e25f960bb83709ea62cdbb418 Mon Sep 17 00:00:00 2001 From: "Alexis H. Munsayac" Date: Tue, 6 Feb 2024 11:12:05 +0800 Subject: [PATCH] Update index.ts --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index a94e8c4..56d0456 100644 --- a/src/index.ts +++ b/src/index.ts @@ -338,8 +338,8 @@ export default function solidPlugin(options: Partial = {}): Plugin { plugins: needHmr && !isSsr && !inNodeModules ? [[solidRefresh, { bundler: 'vite', fixRender: true, - imports: options.refresh.imports, - granular: options.refresh.granular, + imports: options.refresh?.imports, + granular: options.refresh?.granular, }]] : [], ast: false, sourceMaps: true,