Get 'require' function through AMD; remove unused parameter from resolveConfig