solidjs / solid-refresh

MIT License
85 stars 18 forks source link

fix: some stuff #57

Closed lxsmnsyc closed 7 months ago

lxsmnsyc commented 8 months ago

This PR focuses more on correcting bindings that are lost during the transformation process. Things like new functions, new variable declarations and new imports can cause issues with other babel plugins.

This involves:

Minor fix includes capturing the import declarations. The issue was that I initially added a check if the import is a normal import or a type import through importKind === "value". Turns out that's not always true, so I did an inverse check instead.