mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 16:17:50 +00:00
Ensure modularize underscore exports=amd works without errors in template.js.
Former-commit-id: ae137c924d26b2614ed1ebdb7abb33e4b76124f4
This commit is contained in:
2
build.js
2
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`
|
||||
|
||||
Reference in New Issue
Block a user