by spirobelv2 · 2y ago · 0 comments
If you need an hmr script you can use the one I wrote for my webframework: https://github.com/spirobel/mininext
(my goal with mininext is to provide index.php like productivity but with all of npm and typescript at your fingertips)
mininext has a clean package.json
It is just 3 files of modest size that are understandable in an afternoon.
You can also copy and paste and vendor the hmr part.
Someone even forked mininext to create micronext.
My goal is to compete with php. So I added some quality of life features. But if people want to go turbo minimalistic I can respect that.
I just wouldn't add a dependency for hmr when it is so easy to do with a small snippet.
mininext is a neat idea and I plan to read through the code (do you have a preferred 'small snippet' for hrm? I'd be interested to read that too) but I was talking more generally in my last comment.