cli
cli copied to clipboard
Chokidar watch options
Hi,
Is there a way to pass custom ignore switch to chokidar?
In my case, source and destination directory is same. Ex: swc ./src -d ./src -w --only **/*.ts
With this, .js files get generated in ./src/. But this is causing loop as chokidar detected file change in the src dir.
I see chokidar.watch() is only supporting dot files as of now. Can you please confirm if swc-cli support any custom ignore pattern for chokidar?
Thanks