From 37321716048ea141817e3f73426d90a2787de19b Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Wed, 2 Sep 2020 06:50:59 -0500 Subject: [PATCH] chore(watch): fix watch --- src/compiler/build/watch-build.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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) {