Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 102262c

Browse files
author
Je
committed
fix: fix hmr
1 parent 55c01d4 commit 102262c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

project.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ export class Project {
685685
}
686686
}
687687
}
688-
if ((reModuleExt.test(path) || reMDExt.test(path)) && path.startsWith('/pages/')) {
688+
if (path.startsWith('/pages/') && (reModuleExt.test(path) || reMDExt.test(path))) {
689689
return true
690690
}
691691
let isDep = false
@@ -696,7 +696,7 @@ export class Project {
696696
}
697697
}
698698
if (isDep) {
699-
return
699+
return true
700700
}
701701
return this.config.plugins.findIndex(p => p.test.test(path)) > -1
702702
})()

0 commit comments

Comments
 (0)