[Performance]: Replace classnames
usage with clsx
#47602
Labels
focus: performance
The issue/PR is related to performance.
team: Kirigami & Origami
team: Mothra
team: Rubik
Store API checkout endpoints, Mini-Cart, Cart and Checkout related issues
type: cooldown
Things that are queued for a cooldown period (assists with planning).
type: enhancement
The issue is a request for an enhancement.
type: good first issue
The issue is a good candidate for the first community contribution/for a newcomer to the team.
Describe the solution you'd like
I noticed that Gutenberg has switched to using
clsx
which is a faster and lighter alternative toclassnames
. In Gutenberg's case, this resulted in about a kilobyte of savings.Let's see what size savings we can get across WooCommerce code by using this alternative.
I've assigned this to all the teams that work the most in JavaScript since any of you could pick it up.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: