Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🧹 refactor: replace lodash with lodash-es #378

Merged
merged 3 commits into from
May 24, 2023

Conversation

defqd
Copy link
Contributor

@defqd defqd commented May 23, 2023

Imported specific methods individually instead of import the whole 'lodash' library

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @defqd , Thank you for your PR.

Have you check the recommended way in this answer? https://stackoverflow.com/a/62589268
With this, we don't need to add allowedCommonJsDependencies

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @cosmos-explorer, I checked. The warning has disappeared.

@deleteLater deleteLater changed the title 🧹refactor: lodash imports 🧹 refactor: replace lodash with lodash-es May 24, 2023
@@ -21,6 +21,7 @@
"@angular/platform-browser-dynamic": "^14.0.0",
"@angular/router": "^14.0.0",
"@antv/g2": "^4.2.7",
"lodash-es": "^4.17.21",
"lodash.differenceby": "^4.8.0",
Copy link
Contributor

@cosmos-explorer cosmos-explorer May 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can remove

  • lodash.differenceby
  • lodash.get
  • lodash.intersectionby
  • lodash.keyby

Then rerun npm i

@cosmos-explorer
Copy link
Contributor

LGTM! Thank you very much

@cosmos-explorer cosmos-explorer merged commit b9ed8e1 into featbit:main May 24, 2023
@deleteLater
Copy link
Contributor

@all-contributors
please add @defqd for code

@allcontributors
Copy link
Contributor

@deleteLater

I've put up a pull request to add @defqd! 🎉

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.

3 participants