Skip to content

Commit

Permalink
fix: use prefix check for hmr keys
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Feb 21, 2024
1 parent e17c5fc commit e5420c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/cli.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function createCLI(opts) {
const diff = getDiff().filter((entry) => entry.key !== 'dir')
logger.info('Config updated:\n' + diff.map((i) => ' - ' + i.toJSON()).join('\n'))
Object.assign(nuxtConfig.docs, config)
if (diff.some((entry) => !HMRKeys.has(entry.key))) {
if (diff.some((entry) => !HMRKeys.has(entry.key.split('.')[0]))) {
logger.info('Full reloading...')
tryUseNuxt()?.callHook('restart')
} else {
Expand Down

0 comments on commit e5420c8

Please sign in to comment.