lib/fume.js
function cjsWrap(factoryCode, deps) {
        var requires = deps.map(function (dep) {
            return "require('" + dep + "')";
        });
        return CJS_TEMPLATE.START +
            factoryCode +
            CJS_TEMPLATE.MIDDLE +
            requires.join(',') +
            CJS_TEMPLATE.END;
    }
function cjsWrap(factoryCode, deps) {
        var requires = deps.map(function (dep) {
            return "require('" + dep + "')";
        });
        return CJS_TEMPLATE.START +
            factoryCode +
            CJS_TEMPLATE.MIDDLE +
            requires.join(',') +
            CJS_TEMPLATE.END;
    }
function cjsWrap ( factoryCode , deps ) { var requires = deps . map ( function ( dep ) { return "require('" + dep + "')" ; } ) ; return CJS_TEMPLATE . START + factoryCode + CJS_TEMPLATE . MIDDLE + requires . join ( ',' ) + CJS_TEMPLATE . END ; }
Wrap a factory with a CJS loader.
Wrap a factory with a CJS loader .