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 Jul 30, 2019
1 parent f08062b commit ad5224c
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 @@ -221,7 +221,10 @@ export default async function({
},
})
.on("all", function(type: string, filename: string) {
if (!util.isCompilableExtension(filename, cliOptions.extensions)) {
if (
!util.isCompilableExtension(filename, cliOptions.extensions) &&
!filenames.includes(filename)
) {
return;
}

Expand Down

0 comments on commit ad5224c

Please sign in to comment.