diff --git a/build.js b/build.js index 5791e99dd..f2a88f041 100644 --- a/build.js +++ b/build.js @@ -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`