function onFound(info) {
            //Only mark this module as having a name if not a named module,
            //or if a named module and the name matches expectations.
            if (layerobj && (info.needsId || info.foundId === moduleName)) {
                layerobj.modulesWithNames[moduleName] = true;
            }
        }
Uses the module build config object to create an flattened version
of the module, with deep dependencies included.

@param {Object} module the module object from the build config info.

@param {Object} layerobj the layerobj object returned from build.traceDependencies.

@param {Object} the build config object.

@returns {Object} with two properties: "text", the text of the flattened
module, and "buildText", a string of text representing which files were
included in the flattened module text.