Open lucas-jones opened 1 year ago
This is really frustrating.
Used nodemon
as a workaround for now
I saw the latest comment on the PR https://github.com/oven-sh/bun/pull/8679 that adding the watchedFilePaths
parameter will be added in a separate new PR. I wanted to ask if this issue could also be fixed in that PR because they are so similar. Specifically, allowing any plugin that uses build.onLoad
to automatically keep the built-in --watch
behavior (or a general plugin boolean flag to enable it), so all existing bun plugins can also work with --watch
without needing to update their code.
Hello, any updates about this ?
What version of Bun is running?
1.0.0+822a00c4d508b54f650933a73ca5f4a3af9a7983
What platform is your computer?
Linux 5.15.0-67-generic x86_64 x86_64
What steps can reproduce the bug?
When using a plugin
--watch
&--hot
no longer workbuild.onLoad
will prevent watching & reloading to work on filtered filesBasic Example
Just transpiles
.ts
into javascript using Bun's transpilerCommand
bun --watch ./src/index.ts
bunfig.toml
plugin.ts
What is the expected behavior?
Reloading of the application on file changes
What do you see instead?
No reloading
Additional information
No response