HMR of solid-element for Vite ?
Does anyone know how to make HMR works for solid-element when using vite?
I found the doc at https://github.com/solidjs/solid/tree/main/packages/solid-element#hot-module-replacement-new
it's only talks about webpack and parcel.
GitHub
solid/packages/solid-element at main · solidjs/solid
A declarative, efficient, and flexible JavaScript library for building user interfaces. - solid/packages/solid-element at main · solidjs/solid
9 Replies
I haven't done any work there. I haven't really touched Solid element for quite some time for HMR, the old HMR was very specific and based on the older HMR spec. It's a gap.
I added these codes manually, it works, only the imported css?inline has no effect, I think it's the problem of Vite maybe.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
what do you mean?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
the question is not important now, but if someone can find a perfact way to solved it, it would be nice.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
you can close it, it doesn't matter.😉
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View