/**
 * @see https://zhuanlan.zhihu.com/p/133303180
 * @see https://www.jianshu.com/p/e95d9ffd32e4
 * Events事件做跨级通信
 **/
import { EventEmitter } from 'events';

const eventCenter = new EventEmitter();
export default eventCenter;
