import type * as d from '../declarations' ; import { getHostRef } from '@platform' ; import { HOST_FLAGS } from '@utils' ; import { initializeComponent } from './initialize-component' ; export const hmrStart = ( elm , cmpMeta , hmrVersionId ) => { const hostRef = getHostRef ( elm ) ; hostRef . $flags$ = HOST_FLAGS . hasConnected ; elm [ 's-hmr-load' ] = ( ) => { delete elm [ 's-hmr-load' ] ; hmrFinish ( elm , cmpMeta ) ; } ; initializeComponent ( elm , hostRef , cmpMeta , hmrVersionId ) ; } ; export const hmrFinish = ( _elm , _cmpMeta ) => { } ;