How can I prevent Vite from adding unused CSS code to the final bundle?

I was testing a UI kit I was developing as a pet project and ran into a problem. For some unknown reason, Vite adds CSS code that I do not use in the final web application bundle.
Code:
`
import { Button } from ‘kuui-react’

function App() {
    return <Button>Button</Button>
}

export default App

In the component library, I have provided the ability to import specific components from the entire library. Here is an example of importing and exporting components in the library:
import { Title as e } from “./ui/Title/Title.js”;
export {e as Title}
Here is an example of my component in the library:
import “../../assets/Title.css”;
// Component code
`
When I run: npm run build. I’m getting a CSS file with all the styles from kuui-react. How can I solve this problem?

I tried using cssCodeSplit, cssMinify and so on in Vite configuration but it didn’t solve my problem.