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

Support ignoring paths with bun --watch #3398

Open
huseeiin opened this issue Jun 25, 2023 · 2 comments
Open

Support ignoring paths with bun --watch #3398

huseeiin opened this issue Jun 25, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@huseeiin
Copy link
Contributor

What is the problem this feature would solve?

nodemon does something like this:

{
	"watch": ["./**/*.ts"]
	// anything other than **/*.ts is supposed to be ignored.
}

tsx (https://github.com/esbuild-kit/tsx) does tsx watch --ignore ./file.js

how to do this with bun?

What is the feature you are proposing to solve the problem?

bun --watch --ignore clientCode/**/*

The issue would probably be what would bun do if a certain ignored module is being used during runtime?

What alternatives have you considered?

To completely stop bun from watching files

@huseeiin huseeiin added the enhancement New feature or request label Jun 25, 2023
@Electroid Electroid changed the title How to use bun --watch while ignoring stuff like client code that is already being hot reloaded by another tool? Support ignoring paths with bun --watch Feb 5, 2024
@huseeiin
Copy link
Contributor Author

related #5278

@mlshv
Copy link

mlshv commented Aug 22, 2024

I think this should be prioritized. Not being able to ignore certain paths makes it impossible (or at least very difficult) to implement watch in full-stack apps. For example, it breaks compatibility with Vite HMR, as stated in #13203.

Related: #5278

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

No branches or pull requests

2 participants