const connect = ( port ) => { console . log ( 'Empty Editor Worker' ) ; self . close ( ) ; } ; self . onconnect = ( e ) => { let [ port ] = e . ports ; connect ( port ) ; } ; if ( ! ( "SharedWorkerGlobalScope" in self ) ) { connect ( self ) ; } export { } ;