Replies: 4 comments
-
No, it is not possible - all modules that are loaded into the runtime (either by |
Beta Was this translation helpful? Give feedback.
-
Well yeah actually is not that bad cause I have instant change with HMR. |
Beta Was this translation helpful? Give feedback.
-
It might be bit of a kludge but perhaps one option would be to implement your own wrapper using Deno.watchFs. At least then you would have more control over the behavior with the cost of having more code of yours to maintain. |
Beta Was this translation helpful? Give feedback.
-
Hi is there any way to make the server restart only if you edit certain files? I have a main.jsx file I'd like to watch for changes, this file imports my App.jsx file which is server side rendered. I want changes done on main.jsx to restart the server but not the changes on App.jsx (I already have an HMR feature for that).
I tried this
deno run --watch=Server/main.jsx Server/main.jsx
but editing App.jsx still affects the server restarting, I think it's because I'm importing that file in main.jsx like so:
import App from './index.jsx'
I also tried to move it out of the main.jsx directory but is still being watched
Beta Was this translation helpful? Give feedback.
All reactions