Skip to content

Replace lodash with eta#3489

Open
rtritto wants to merge 1 commit intoGoogleChrome:v7from
rtritto:replace-lodash
Open

Replace lodash with eta#3489
rtritto wants to merge 1 commit intoGoogleChrome:v7from
rtritto:replace-lodash

Conversation

@rtritto
Copy link
Copy Markdown

@rtritto rtritto commented Apr 1, 2026

lodash v4.18.0 introduced the issue lodash/lodash#6167 with lodash.template.

E.g.:

Error: Unable to generate service worker from template. 'assignWith is not defined'
    at populateSWTemplate (C:\Users\<USER>\AppData\Local\Yarn\Berry\cache\workbox-build-npm-7.4.0-c84561662c-10c0.zip\node_modules\workbox-build\build\lib\populate-sw-template.js:76:15)
    at writeSWUsingDefaultTemplate (C:\Users\<USER>\AppData\Local\Yarn\Berry\cache\workbox-build-npm-7.4.0-c84561662c-10c0.zip\node_modules\workbox-build\build\lib\write-sw-using-default-template.js:28:73)
    at generateSW (C:\Users\<USER>\AppData\Local\Yarn\Berry\cache\workbox-build-npm-7.4.0-c84561662c-10c0.zip\node_modules\workbox-build\build\generate-sw.js:95:23)

lodash.template is also deprecated (soruce lodash.template):

This package is deprecated. Use https://socket.dev/npm/package/eta instead.

lodash is used only in the workbox-build package (it uses lodash.template) and it can be replaced with eta (https://www.npmjs.com/package/eta).
The @types/lodash dependency at root package.json can be also be removed.

@google-cla
Copy link
Copy Markdown

google-cla bot commented Apr 1, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@rtritto
Copy link
Copy Markdown
Author

rtritto commented Apr 1, 2026

@google-cla I signed the CLA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant