unbuild
unbuild copied to clipboard
Document "passive watcher" usage
Describe the feature
Hi there! I've been very interested in trying out the recommended "Passive Watcher" alternative to watching. I was able to find the hidden unbuild --stub command through the issues, but don't know what the next step is supposed to be. I've tried running the output with node dist/index.mjs which does start the h3/listhen powered server, but doesn't restart it when the file change (so it doesn't watch). Using node's native --watch doesn't work either, as jiti doesn't use an "import", so Node's watcher doesn't recognize the file change.
I should be able to make it work with nodemon (eg nodemon --watch src dist/index.mjs), but I'm very curious to learn how this is supposed to work 🙂
Additional information
- [X] Would you be willing to help implement this feature?