BartoszJarocki / cv

Print-friendly, minimalist CV page
https://cv.jarocki.me
MIT License
8.71k stars 914 forks source link

A redundant clsx dependecy #52

Open VladimirCreator opened 5 months ago

VladimirCreator commented 5 months ago

A redundant clsx dependecy

class-variance-authority actually already provides the functionality that clsx does and it is called cx.

cx is just an alias for clsx so I suggest removing clsx from package.json.

/src/lib.utils.ts

import { clsx } from 'clsx'
import type { ClassValue } from 'clsx'

is the same as

import { cx } from 'class-variance-authority'
import type { ClassValue } from 'class-variance-authority/types'