diff --git a/src/compiler/build/watch-build.ts b/src/compiler/build/watch-build.ts index 1e5d1983574..9b270343223 100644 --- a/src/compiler/build/watch-build.ts +++ b/src/compiler/build/watch-build.ts @@ -79,9 +79,7 @@ export const createWatchBuild = async (config: d.Config, compilerCtx: d.Compiler const watchingFiles = new Map(); const onFsChange: d.CompilerFileWatcherCallback = (p, eventKind) => { - if (tsWatchProgram && isWatchIgnorePath(config, p)) { - config.watchIgnoredRegex; - + if (tsWatchProgram && !isWatchIgnorePath(config, p)) { updateCompilerCtxCache(config, compilerCtx, p, eventKind); switch (eventKind) {