New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Files passed to --ignore
are also watched
#9565
Comments
Hey @dahjelle! We really appreciate you taking the time to report an issue. The collaborators If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack |
I think that chokidar's |
Can I pick this up? |
Sure feel free. |
|
Bug Report
Current Behavior
I was hitting an error message of "System limit for number of file watchers reached", and it turns out that this was because I was doing something like:
But, since
--ignore
was not getting passed tochokidar
, it was trying to watch the entirenode_modules
directory—hence the error!Expected behavior/code
I would expect
--watch
to also respect the--ignore
option.Babel Configuration (.babelrc, package.json, cli command)
Environment
cli
Possible Solution
I attempted but failed in a patch: #9559 This failed as
chokidar
uses globs for their--ignored
flag and Babel uses RegExp.Is there another way to avoid the issue? I recognize it is more usual to run
babel
against asrc
directory or the like…but one doesn't always have that luxury on legacy code.Thanks!
The text was updated successfully, but these errors were encountered: