code: function isLocalModule(modulePath) {
    // TODO: handle alias module path like src
    const alias = getModuleResolverAlias();
    return /^\./.test(modulePath) || _.keys(alias).some(a => modulePath === a || _.startsWith(modulePath, a + '/'));
  }
docs: Check if a module is local module. It will check alias defined by babel plugin module-resolver.
  @param {string} modulePath - The module path. i.e.: import * from './abc'; './abc' is the module path.
  @alias module:common.isLocalModule