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

Commit 6e18e83

Browse files
author
Je
committed
fix: fix fs watcher
1 parent f9a20ad commit 6e18e83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

project.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@ export default class Project {
400400
document: new Document(),
401401
innerWidth: 1920,
402402
innerHeight: 1080,
403+
devicePixelRatio: 1,
403404
$RefreshReg$: () => { },
404405
$RefreshSig$: () => (type: any) => type,
405406
})
@@ -499,7 +500,7 @@ export default class Project {
499500
}
500501
let isDep = false
501502
for (const { deps } of this.#modules.values()) {
502-
if (deps.findIndex(dep => dep.url === '.' + path) > -1) {
503+
if (deps.findIndex(dep => dep.url === './' + path) > -1) {
503504
isDep = true
504505
break
505506
}

0 commit comments

Comments
 (0)