Add a space before define in the minified files so Dojo builder will detect it properly.

Former-commit-id: 3c656ba3b2dd4771eab97c259840c2f426e2454c
This commit is contained in:
John-David Dalton
2013-05-07 22:14:47 -07:00
parent 37ffe63d13
commit 1dfebad790

View File

@@ -44,6 +44,11 @@
return (other ? other + ' ' : '') + expression + equality + type;
});
// add a space so `define` is detected by the Dojo builder
source = source.replace(/.define\(/, function(match) {
return (/^\S/.test(match) ? ' ' : '') + match;
});
// add trailing semicolon
if (source) {
source = source.replace(/[\s;]*?(\s*\/\/.*\s*|\s*\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\/\s*)*$/, ';$1');