r.js
function makeRequire(relModuleMap, enableBuildCallback, altRequire) {
            var modRequire = makeContextModuleFunc(altRequire || context.require, relModuleMap, enableBuildCallback);

            mixin(modRequire, {
                nameToUrl: makeContextModuleFunc(context.nameToUrl, relModuleMap),
                toUrl: makeContextModuleFunc(context.toUrl, relModuleMap),
                defined: makeContextModuleFunc(context.requireDefined, relModuleMap),
                specified: makeContextModuleFunc(context.requireSpecified, relModuleMap),
                isBrowser: req.isBrowser
            });
            return modRequire;
        }
function makeRequire(relModuleMap, enableBuildCallback, altRequire) {
            var modRequire = makeContextModuleFunc(altRequire || context.require, relModuleMap, enableBuildCallback);

            mixin(modRequire, {
                nameToUrl: makeContextModuleFunc(context.nameToUrl, relModuleMap),
                toUrl: makeContextModuleFunc(context.toUrl, relModuleMap),
                defined: makeContextModuleFunc(context.requireDefined, relModuleMap),
                specified: makeContextModuleFunc(context.requireSpecified, relModuleMap),
                isBrowser: req.isBrowser
            });
            return modRequire;
        }
function makeRequire ( relModuleMap , enableBuildCallback , altRequire ) { var modRequire = makeContextModuleFunc ( altRequire || context . require , relModuleMap , enableBuildCallback ) ; mixin ( modRequire , { nameToUrl : makeContextModuleFunc ( context . nameToUrl , relModuleMap ) , toUrl : makeContextModuleFunc ( context . toUrl , relModuleMap ) , defined : makeContextModuleFunc ( context . requireDefined , relModuleMap ) , specified : makeContextModuleFunc ( context . requireSpecified , relModuleMap ) , isBrowser : req . isBrowser } ) ; return modRequire ; }
Helper function that creates a require function object to give to
modules that ask for it as a dependency. It needs to be specific
per module because of the implication of path mappings that may
need to be relative to the module name.
Helper function that creates a require function object to give to modules that ask for it as a dependency . It needs to be specific per module because of the implication of path mappings that may need to be relative to the module name .