core/refactor/common.js
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 + '/'));
}
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 + '/'));
}
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 + '/' ) ) ; }
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
Check if a module is local module . It will check alias defined by babel plugin module - resolver .