text: /**
   * config.js - The configuration for the loader
   */
  
  // The root path to use for id2uri parsing
  data.base = loaderDir
  
  // The loader directory
  data.dir = loaderDir
  
  // The loader's full path
  data.loader = loaderPath
  
  // The current working directory
  data.cwd = cwd
  
  // The charset for requesting files
  data.charset = "utf-8"
  
  // @Retention(RetentionPolicy.SOURCE)
  // The CORS options, Do't set CORS on default.
  //
  //data.crossorigin = undefined
  
  // data.alias - An object containing shorthands of module id
  // data.paths - An object containing path shorthands in module id
  // data.vars - The {xxx} variables in module id
  // data.map - An array containing rules to map module uri
  // data.debug - Debug mode. The default value is false
  
  seajs.config = function(configData) {
  
    for (var key in configData) {
      var curr = configData[key]
      var prev = data[key]
  
      // Merge object config such as alias, vars
      if (prev && isObject(prev)) {
        for (var k in curr) {
          prev[k] = curr[k]
        }
      }
      else {
        // Concat array config such as map
        if (isArray(prev)) {
          curr = prev.concat(curr)
        }
        // Make sure that `data.base` is an absolute path
        else if (key === "base") {
          // Make sure end with "/"
          if (curr.slice(-1) !== "/") {
            curr += "/"
          }
          curr = addBase(curr)
        }
  
        // Set config
        data[key] = curr
      }
    }
  
    emit("config", configData)
    return seajs
  }
  