import { LitElement } from 'lit' ; export const resizeObserver = new ResizeObserver ( ResizeObserverHandler ) ; function ResizeObserverHandler ( entries ) { for ( let entry of entries ) { if ( entry . target instanceof LitElement ) { entry . target . requestUpdate ( ) ; } } }