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,