docs: function resolve(path, config) {
      var original = path;
  
      if (/^([0-9a-z_$]+(\.[0-9a-z_$]+)*)$/gi.test(path))
          path = path.replace(/\./gi, '/') + '.js';
  
      var libs = config.getLibs();
      var appRoot = config.getBasePath();
      var appCodeDir = config.getAppDir();
  
      for(var prefix in libs) if (libs.hasOwnProperty(prefix)) {
          if (path.substr(0, prefix.length) == prefix) {
              path = libs[prefix] + path.substring(prefix.length);
              break;
          }
      }
  
      path = path.replace(/^~\//gi, appRoot);
      path = path.replace(/^\.\//gi, appCodeDir);
  
      if (!path.match(/^\//i) && !path.match(/^\w:\\/))
          path = appCodeDir + path;
  
      path = path.replace(/\/\//gi, '/');
  
      return path;
  }