Open joshkolenko opened 1 year ago
I am also experiencing this on Darwin 23.0.0 arm64
with bun version 1.0.2
from nixpkgs
Related issue https://github.com/oven-sh/bun/issues/4689
There's probably a workaround involving dynamic import + query string parameters that could be used in the meantime which would load the file as text without the loader (inside the loader) and that would add it to the list of watched files
What version of Bun is running?
1.0.2+37edd5a6e389265738e89265bcbdf2999cb81a49
What platform is your computer?
Darwin 22.5.0 arm64 arm
What steps can reproduce the bug?
I wrote a custom loader (plugin) to support importing
.scss
files. The loader is working as expected but when usingbun --watch
, the imported.scss
file does not rerun the process on save.You can reproduce by doing the following:
Create a
.scss
filestyles.scss
Create a plugin
sassLoader.js
(and preload the plugin inbunfig.toml
)Import the styles in a
js
fileindex.js
Run
bun --watch index.js
What is the expected behavior?
I'd expect that when the file that's imported is edited and saved, the watcher would rerun the process just like it does with imported files that are natively supported.
What do you see instead?
Instead, the watcher does not rerun, while other file types that are native (
.jsx
,.text
, etc.) do rerun the process as expected.Additional information
No response