Open Newbie012 opened 2 years ago
Their HMR API looks very similar to Webpack's, so probably yes.
I guess you'd need to look into Vite's Plugin API and reimplement the Webpack loader package for it.
It doesn't look like it would take too much work to make it work (the loader is pretty small piece of code). However, I haven't personally used AngularJS in a long while so I don't really get personal gain from implementing this, so it might take quite a while before I find the motivation/time to do so. If you or anyone else wants to take a stab at it I'd be happy to give advice / help and eventually merge it in here.
@Newbie012 Did you get this working?
@SidIcarus Sorry but no. Webpack and Vite work differently, which would've made me put in lots of effort. If it helps, we eventually adopted incrementally React (which runs inside AngularJS) instead.
I'm looking to integrate hot reload for my angularjs application. The thing is, I'm using vite rather than webpack. I was wondering if this library could be integrated with vite somehow