feat: migrate to es-toolkit#16836
Draft
MounirDhahri wants to merge 1 commit intoclaude/fix-lodash-imports-wvjbxfrom
Draft
feat: migrate to es-toolkit#16836MounirDhahri wants to merge 1 commit intoclaude/fix-lodash-imports-wvjbxfrom
MounirDhahri wants to merge 1 commit intoclaude/fix-lodash-imports-wvjbxfrom
Conversation
Replace lodash with es-toolkit across ~190 files to reduce bundle size and modernize the codebase. lodash remains available via transitive dependencies but is removed as a direct dependency. - Migrate all lodash imports to es-toolkit barrel imports (tree-shaken via sideEffects: false) - Use es-toolkit/compat for functions needing lodash-compatible behavior (variadic merge, loose pick/omit types, isEmpty, times, throttle) - Replace lodash utilities with native JS where appropriate (Object.entries, Array.isArray, .find, .filter, .map, .every, etc.) - Add truncateText utility to replace lodash truncate - Add nativeHelpers.js for CommonJS passport files - Remove lodash and @types/lodash from direct dependencies Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
|
New dependencies added:
|
#6831 Bundle Size — 8.6MiB (-0.19%).4d2943e(current) vs 20b4798 claude/fix-lodash-imports-wvjbx#6825(baseline) Important Bundle introduced 1 duplicate package – View changed duplicate packages Bundle metrics
Bundle size by type
Bundle analysis report Branch migrate-to-es-toolkit Project dashboard Generated by RelativeCI Documentation Report issue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DO NOT MERGE - Experiment
The type of this PR is: feat
Description
This PR migrates to es-toolkit instead of lodash