Skip to content

swc+watch cannot exclude files #2976

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

Closed
1 task
fpnuseis opened this issue Apr 4, 2025 · 5 comments
Closed
1 task

swc+watch cannot exclude files #2976

fpnuseis opened this issue Apr 4, 2025 · 5 comments
Labels

Comments

@fpnuseis
Copy link

fpnuseis commented Apr 4, 2025

Is there an existing issue that is already proposing this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe it

if use swc + watch option, can not exclude files(ex. *spec.ts)

Describe the solution you'd like

add watch exclude option for swc

Teachability, documentation, adoption, migration strategy

No response

What is the motivation / use case for changing the behavior?

When modifying *spec.ts files, these files are generally excluded because we don't want a rebuild.
By adding an exclude option for swc, a rebuild can be avoided when certain files are changed.

@kamilmysliwiec
Copy link
Member

Would you like to create a PR for this issue?

@Antraxmin
Copy link

I'd like to work on this issue. I'll create a PR that implements the watch exclude option for swc.

@fpnuseis
Copy link
Author

fpnuseis commented Apr 8, 2025

I'd like to work on this issue. I'll create a PR that implements the watch exclude option for swc.

Thanks!

@fjodor-rybakov
Copy link

I'm impemented this feature. Can you review it?

@kamilmysliwiec
Copy link
Member

Let's track this here #3048

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

No branches or pull requests

4 participants