This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
Remove lodash dependency from frontend scripts #8642
Labels
focus: performance
The issue/PR is related to performance.
type: cooldown
Things that are queued for a cooldown period (assists with planning).
type: technical debt
This issue/PR represents/solves the technical debt of the project.
As Gutenberg is moving away from lodash (WordPress/gutenberg#17025), we should do the same with WC Blocks scripts. At least, with scripts loaded in the frontend, so we avoid loading lodash, which is a heavy dependency, when our blocks are rendered in the frontend.
In addition to that, we should add an ESLint rule to make sure we don't introduce new usages of lodash. Gutenberg has one that we can use as a reference:
https://github.com/WordPress/gutenberg/blob/e72bc18ce7d62bed1d9514e73f5c17631bf7ed07/.eslintrc.js#L45
The text was updated successfully, but these errors were encountered: