Skip to content

feat: replace lodash function with custom tool class Lodash#1035

Merged
yifancong merged 1 commit intoweb-infra-dev:mainfrom
wChenonly:lodash-built-in
Apr 22, 2025
Merged

feat: replace lodash function with custom tool class Lodash#1035
yifancong merged 1 commit intoweb-infra-dev:mainfrom
wChenonly:lodash-built-in

Conversation

@wChenonly
Copy link
Copy Markdown
Contributor

@wChenonly wChenonly commented Apr 21, 2025

Summary

this pr has some simple lodash functions built in.

Now the use of internal lodash is relatively chaotic.

Also, I want to ask the person in charge, what's your attitude towards replacing lodash? Lodash hasn't been maintained for many years, and it's not efficient enough.
I want to use es-toolkit instead of it, if possible. Also, I don't need to switch to lodash-es for the existing lodash.

Related Links

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 21, 2025

Deploy Preview for rsdoctor ready!

Name Link
🔨 Latest commit 1f6d495
🔍 Latest deploy log https://app.netlify.com/sites/rsdoctor/deploys/68070c81b70cbb00087496a7
😎 Deploy Preview https://deploy-preview-1035--rsdoctor.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

yifancong
yifancong previously approved these changes Apr 22, 2025
Comment thread packages/core/src/build-utils/common/chunks/assetsModules.ts Outdated
@yifancong
Copy link
Copy Markdown
Contributor

yifancong commented Apr 22, 2025

Also, I want to ask the person in charge, what's your attitude towards replacing lodash? Lodash hasn't been maintained for many years, and it's not efficient enough.
I want to use es-toolkit instead of it, if possible. Also, I don't need to switch to lodash-es for the existing lodash.

@wChenonly Yes, We can replace lodash with other tools that are more conducive to packaging volume. Thank you for your advice.

@wChenonly
Copy link
Copy Markdown
Contributor Author

Yes, We can replace lodash with other es tools that are more conducive to packaging volume. Thank you for your advice.

thanks,I'll deal with those in the next pr

@yifancong yifancong self-requested a review April 22, 2025 03:28
@yifancong yifancong merged commit cde1b83 into web-infra-dev:main Apr 22, 2025
7 checks passed
@wChenonly wChenonly deleted the lodash-built-in branch April 22, 2025 03:32
@yifancong yifancong mentioned this pull request May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants