Skip to content

Commit c7d6323

Browse files
committed
Update index.ts
1 parent 0cdac56 commit c7d6323

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ export default function solidPlugin(options: Partial<Options> = {}): Plugin {
260260
},
261261

262262
configResolved(config) {
263-
needHmr = config.command === 'serve' && config.mode !== 'production' && (options.hot !== false && !options.refresh.disabled);
263+
needHmr = config.command === 'serve' && config.mode !== 'production' && (options.hot !== false && !options.refresh?.disabled);
264264
},
265265

266266
resolveId(id) {

0 commit comments

Comments
 (0)