_resolveCodePath(cwd, codeUri) {
    if (!path.isAbsolute(codeUri)) {
      if (!cwd || cwd === CURRENT_DIR) {
        cwd = process.cwd();
      }
      cwd = path.resolve(cwd);
      return path.resolve(cwd, codeUri);
    }
    return codeUri;
  }
Resolve code path to be a absolute one.

@param cwd the current working directory.
@param codeUri the code uri, which can be a local path(relative or absolute), a url, etc.
@returns {*} the absolute path of the code uri.
@private