Add support for wrapping the build in UMD syntax.

This commit is contained in:
Tim Schaub
2014-12-13 13:23:10 -08:00
parent 7fd017879f
commit b60b0ecdb0
5 changed files with 35 additions and 4 deletions
+5
View File
@@ -172,6 +172,11 @@ function generateExports(symbols, namespace) {
Object.keys(requires).sort().reverse().forEach(function(name) {
blocks.unshift('goog.require(\'' + name + '\');');
});
blocks.unshift(
'/**\n' +
' * @fileoverview Custom exports file.\n' +
' * @suppress {checkVars}\n' +
' */\n');
return blocks.join('\n');
}