Summary
After upgrading to [email protected], importing and calling template from lodash-es/template.js throws:
ReferenceError: assignWith is not defined
at template (file://.../node_modules/lodash-es/template.js:169:3)
This appears to be a regression in the published lodash-es4.18.0 package. The same reproduction works with [email protected].
Minimal reproduction
npm init -y
npm install [email protected]
node --input-type=module -e "import template from 'lodash-es/template.js'; console.log(template('hi')({}))"
Actual result
file://.../node_modules/lodash-es/template.js:169
options = assignWith({}, options, settings, customDefaultsAssignIn);
^
ReferenceError: assignWith is not defined
at template (file://.../node_modules/lodash-es/template.js:169:3)
Expected result
import template from 'lodash-es/template.js'
console.log(template('hi')({}))
// => "hi"
Version comparison
Environment
- Node.js: reproduced on Node 22.3
- Module format: ESM import from
lodash-es/template.js
I believe this might be the commit that causes this error: 879aaa9
Summary
After upgrading to
[email protected], importing and callingtemplatefromlodash-es/template.jsthrows:This appears to be a regression in the published
lodash-es4.18.0 package. The same reproduction works with[email protected].Minimal reproduction
Actual result
Expected result
Version comparison
[email protected][email protected]Environment
lodash-es/template.jsI believe this might be the commit that causes this error: 879aaa9