Ensure modularize underscore exports=amd works without errors in template.js.

Former-commit-id: ae137c924d26b2614ed1ebdb7abb33e4b76124f4
This commit is contained in:
John-David Dalton
2013-08-09 23:46:20 -07:00
parent fd7dba8860
commit a5cf42b7c8

View File

@@ -4109,7 +4109,7 @@
source = source.replace(matchFunction(source, 'template'), function(match) {
if (isUnderscore) {
// assign `_` via `template.imports`
return match.replace(/_ *= *lodash\b/, '$&.templateSettings.imports._');
return match.replace(/(_ *= *)lodash\b/, '$1templateSettings.imports._');
}
return match
// assign `settings` via `template.imports`