Skip to content

Commit

Permalink
fix(watcher): skip non-compilable file only when it is not included i…
Browse files Browse the repository at this point in the history
…n filenames argument
  • Loading branch information
JLHwung committed Dec 5, 2019
1 parent e94da0d commit a860a12
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/babel-cli/src/babel/file.js
Expand Up @@ -224,7 +224,10 @@ export default async function({
},
})
.on("all", function(type: string, filename: string): void {
if (!util.isCompilableExtension(filename, cliOptions.extensions)) {
if (
!util.isCompilableExtension(filename, cliOptions.extensions) &&
!filenames.includes(filename)
) {
return;
}

Expand Down

0 comments on commit a860a12

Please sign in to comment.