如何全局声明一些自定义变量?
使用示例
import './logger'; // custom module: Global logger is initialized. (using winston)
log.info('This is custom global logger.'); // access to log variable globally.