import { BUILD } from '@app-data' ; import { CSS , plt , promiseResolve , win } from '@platform' ; export const patchEsm = ( ) => { if ( BUILD . cssVarShim && ! ( CSS && CSS . supports && CSS . supports ( 'color' , 'var(--c)' ) ) ) { return import ( './polyfills/css-shim.js' ) . then ( ( ) => { if ( ( plt . $cssShim$ = ( win as any ) . __cssshim ) ) { return plt . $cssShim$ . i ( ) ; } else { return 0 ; } } ) ; } return promiseResolve ( ) ; } ;