I have this setup:
globalThis.allComponents=import.meta.glob('/javascripts/components/**/*.{jsx,tsx,js,ts}',{eager: true});functiongetComponentByName(name: string){/* find component by glob **/<name>.{tsx,jsx}*/}customRender(name:string){constComponent=getComponentByName(name)render(()=><Component/>,element)}this way, when i edit any child component, hot reload works as expected, but when i make any change to the root component, i have no hot reload.
I have this setup:
this way, when i edit any child component, hot reload works as expected, but when i make any change to the root component, i have no hot reload.