I have this setup:
globalThis.allComponents = import.meta.glob('/javascripts/components/**/*.{jsx,tsx,js,ts}', {eager: true});
function getComponentByName(name: string) { /* find component by glob **/<name>.{tsx, jsx} */ }
customRender(name:string){
const Component = 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.