[Bug]: Babel watch is broken for multiple subdirectories on 7.17.X #14269
Labels
i: bug
i: regression
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
pkg: cli
馃捇
How are you using Babel?
@babel/cli
Input code
https://github.com/faow/babel_test
Configuration file name
No response
Configuration
Current and expected behavior
Current Behaviour:
If you add
--watch
to the compiler and have multiple subdirectories, the watcher compiles every edited file to the input and output directory.It seems like multiple watchers are spawned. For every subdirectory the same file gets compiled again.
Babel without watch
Babel with watch initial compilation (working)
Babel with watch: compilation after editing a file (not working)
The second compilation should not happen.
Babel with watch and 3 subfolders: Initial and editing a file
For this case simple add another subfolder to the github sample project.
The first and second compilation should not happen.
Expected behaviour:
With
it is working as expected. Just install the mentioned versions to the github sample project.
Environment
System:
Binaries:
npmPackages:
Possible solution
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: