We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12b564c commit 6dd76a5Copy full SHA for 6dd76a5
1 file changed
src/rspack/context.ts
@@ -17,7 +17,9 @@ export function createBuildContext(compiler: Compiler, compilation: Compilation,
17
},
18
addWatchFile(file) {
19
const cwd = process.cwd()
20
- compilation.fileDependencies.add(resolve(cwd, file))
+ const resolvedPath = resolve(cwd, file)
21
+ compilation.fileDependencies.add(resolvedPath)
22
+ loaderContext?.addDependency(resolvedPath)
23
24
getWatchFiles() {
25
return Array.from(compilation.fileDependencies)
0 commit comments