src/require.js
function _createModuleConfig(filename, content, userResolver) {
  return Object.assign({
    content,
    filename,
    includeGlobals:true,
    syncRequire:_syncRequire(_syncRequire),
    resolveModulePath,
    resolveModulePathSync,
    basedir: path.dirname(filename),
    resolver: userResolver
  }, userResolver.export);
}
function _createModuleConfig(filename, content, userResolver) {
  return Object.assign({
    content,
    filename,
    includeGlobals:true,
    syncRequire:_syncRequire(_syncRequire),
    resolveModulePath,
    resolveModulePathSync,
    basedir: path.dirname(filename),
    resolver: userResolver
  }, userResolver.export);
}
function _createModuleConfig ( filename , content , userResolver ) { return Object . assign ( { content , filename , includeGlobals : true , syncRequire : _syncRequire ( _syncRequire ) , resolveModulePath , resolveModulePathSync , basedir : path . dirname ( filename ) , resolver : userResolver } , userResolver . export ) ; }
Create a config object to pass to _eval or Module constructor using supplied filename, content and Resolver.

@private
@param {string} filename           The filename to create for.
@param {string|Buffer} content     The content of the file.
@param {Resolver} userResolver     The Resolver being used.
@returns {Object}                  The new config object.
Create a config object to pass to _eval or Module constructor using supplied filename content and Resolver .