Skip to content
Discussion options

You must be logged in to vote

@Redmega thanks, that changes the answer. Merging unprefixed classes with prefixed ones is exactly the case I waved off at the end of my answer, so dropping twMergeConfig won't work for you.

3.3.1 can't do this through config. It copies prefix and experimentalParseClassName out of twMergeConfig (tw-merge.ts), but the built-in merger only applies the class-group keys (merge-configs.ts), so both are dropped. tw is then just another variant, so px-2 and tw:px-4 get different conflict keys (config-utils.ts) and both survive.

You can still upgrade. Turn off the built-in merge and run the output through your own tailwind-merge instance. 3.3.1 still lists tailwind-merge >=3.0.0 as an optional pe…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@dgesteves
Comment options

@Redmega
Comment options

@dgesteves
Comment options

Answer selected by Redmega
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants