Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

Chokidar watch options #160

Open
manikantag opened this issue Sep 1, 2022 · 0 comments
Open

Chokidar watch options #160

manikantag opened this issue Sep 1, 2022 · 0 comments

Comments

@manikantag
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant