Aman Karmani
Aman Karmani
Looking at the generated code, this is probably a bug on the devtools side. I see some components are annotated: ```ts const SidebarMenuItem = _$$component(_REGISTRY, "SidebarMenuItem", function SidebarMenuItem(props: { })...
Okay confirmed this is a solid-devtools bug. The workaround is: ```diff -export function SidebarMenu( +export { SidebarMenu }; +function SidebarMenu( ```
actually, solid-devtools works as-is with both types of components.. the issue is some kind of interaction with solid-refresh if i put the devtools babel plugin first, nothing in the output...
well i tried a clean build with devtools plugin first and solid-refresh second and everything seems to be working fine. EDIT: scratch that, still had my workaround in place
as far as I can tell, somehow when `bubbleFunctionDeclaration` moves a `export function Component`, somehow the non-exported node it adds back in is a copy from earlier in the babel...
~~theory from o1:~~ halluciation **Root cause explanation** From the code and transcript, here is what is actually going on: 1. You have an exported function component, for example: ```ts export...
one weird thing i discovered is if i left the original component in place, then both copies would be correct. root cause here seems to be related to how babel...
> btw how are you setting up the plugins ``` ["module:solid-devtools/babel/named"], ["module:solid-refresh/babel", { bundler: "vite" }], ``` with patch-package and a `patches/solid-devtools+0.33.0.patch` patch file ```patch diff --git a/node_modules/solid-devtools/dist/babel/named.js b/node_modules/solid-devtools/dist/babel/named.js new...
https://github.com/babel/babel/issues/5854 http://thejameskyle.com/babel-plugin-ordering.html basically if we remove the node while solid-devtools plugin is concurrently getting around to processing it, it never gets modified so the moved copy at the top of...
> http://thejameskyle.com/babel-plugin-ordering.html this post describes the underlying issue well. both plugins use a `Program` visitor so ordering is problematic. i tried to wrangle babel to make this work, but in...