Skip to content

Commit

Permalink
Merge pull request #27 from LXSMNSYC/patch-2
Browse files Browse the repository at this point in the history
Fix #26
  • Loading branch information
amoutonbrady authored Jan 26, 2022
2 parents 1fd98f6 + 408367d commit e7eb9dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ export default function solidPlugin(options: Partial<Options> = {}): Plugin {
},

configResolved(config) {
needHmr = config.command === 'serve' && !config.isProduction && options.hot !== false;
needHmr = config.command === 'serve' && config.mode !== 'production' && options.hot !== false;
},

resolveId(id) {
Expand Down

0 comments on commit e7eb9dc

Please sign in to comment.