Skip to content

Commit 15a2c9b

Browse files
authored
fix: prevent EBUSY by avoiding absolute paths in watcher (#336)
1 parent 15f940f commit 15a2c9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vite/restart-on-add-unlink.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export function restartOnAddUnlink(): Plugin {
44
return {
55
name: 'restart-on-add-unlink',
66
configureServer(server) {
7-
server.watcher.add('/app/**')
7+
server.watcher.add('./app/**')
88
server.watcher.on('add', async () => {
99
await server.restart()
1010
})

0 commit comments

Comments
 (0)