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

Chokidar watch options #160

@manikantag

Description

@manikantag

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions