cli icon indicating copy to clipboard operation
cli copied to clipboard

Chokidar watch options

Open manikantag opened this issue 3 years ago • 0 comments

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

manikantag avatar Sep 01 '22 16:09 manikantag