We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49c045b commit afeab8cCopy full SHA for afeab8c
src/features/watch.ts
@@ -1,3 +1,4 @@
1
+import path from 'node:path'
2
import { blue } from 'ansis'
3
import { RE_NODE_MODULES } from 'rolldown-plugin-dts/filename'
4
import {
@@ -35,6 +36,7 @@ export async function watchBuild(
35
36
const debouncedOnChange = debounce(onChange, 100)
37
38
const watcher = watch(files, {
39
+ cwd: options.cwd,
40
ignoreInitial: true,
41
ignorePermissionErrors: true,
42
ignored: [
@@ -48,7 +50,7 @@ export async function watchBuild(
48
50
let pending: string[] = []
49
51
let pendingPromise: Promise<void> | undefined
52
watcher.on('all', (type, file) => {
- pending.push(file)
53
+ pending.push(path.resolve(options.cwd, file))
54
debouncedOnChange()
55
})
56
0 commit comments