-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
[Package] Element/packages/element/packages/element[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Description
Is your feature request related to a problem? Please describe.
One of the challenges for projects that want to use various WordPress packages on the frontend is keeping js bundles small. While lodash itself is small in size, the fact that wp.element
depends on it means that any code wanting to enqueue wp.element on the frontend is also going to load lodash.
Since there are many native implementations for lodash features that can be used reliably (and in some cases are faster than lodash), I think it'd be good to remove this package's dependency on lodash and replace with native implementation.
Describe the solution you'd like
Replace lodash dependency in @wordpress/element
by reimplementing any lodash features as native js.
mtias, swissspidy, Aljullu, iandunn, ajitbohra and 4 more
Metadata
Metadata
Labels
[Package] Element/packages/element/packages/element[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.A suggestion for improvement.