Skip to content
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

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant