src/require.js
function _evalModuleText(filename, content, userResolver, sync=true) {
  if (content === undefined) return;

  const ext = path.extname(filename);
  const config = _createModuleConfig(filename, content, _getResolve(userResolver));
  let module = _runEval(config, settings.get(ext) || function(){}, userResolver.options || {}, sync);

  if ((!(config.resolver || {}).squashErrors) && fileCache.has(filename)) fileCache.delete(filename);
  return module;
}
function _evalModuleText(filename, content, userResolver, sync=true) {
  if (content === undefined) return;

  const ext = path.extname(filename);
  const config = _createModuleConfig(filename, content, _getResolve(userResolver));
  let module = _runEval(config, settings.get(ext) || function(){}, userResolver.options || {}, sync);

  if ((!(config.resolver || {}).squashErrors) && fileCache.has(filename)) fileCache.delete(filename);
  return module;
}
function _evalModuleText ( filename , content , userResolver , sync = true ) { if ( content === undefined ) return ; const ext = path . extname ( filename ) ; const config = _createModuleConfig ( filename , content , _getResolve ( userResolver ) ) ; let module = _runEval ( config , settings . get ( ext ) || function ( ) { } , userResolver . options || { } , sync ) ; if ( ( ! ( config . resolver || { } ) . squashErrors ) && fileCache . has ( filename ) ) fileCache . delete ( filename ) ; return module ; }
Evaluate module text in similar fashion to require evaluations, returning the module.

@private
@param {string} filename                   The path of the evaluated module.
@param {string} content                    The text content of the module.
@param {Resolver|Object} [userResolver]    Resolver to use, if not a resolver assume it is config for a new resolver.
@returns {Module}                          The new module.
Evaluate module text in similar fashion to require evaluations returning the module .