S
SolidJS•2y ago
Homercat

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
ryansolid
ryansolid•2y ago
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.
Homercat
HomercatOP•2y ago
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
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Homercat
HomercatOP•2y ago
what do you mean?
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Homercat
HomercatOP•2y ago
the question is not important now, but if someone can find a perfact way to solved it, it would be nice.
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Homercat
HomercatOP•2y ago
you can close it, it doesn't matter.😉
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server