activeguild / vite-plugin-sass-dts

This is a plugin that automatically creates a type file when using the CSS module type-safely.
MIT License
120 stars 18 forks source link

Named imports #60

Closed tomahl closed 1 year ago

tomahl commented 1 year ago

Hi there,

As a user I would like to use named imports to keep my classNames shorter and more readable.

import { foo, bar } from "./my.module.scss";

<div className={foo}>
    <div className={bar}></div>
</div>

Maybe I have missed something, but I was not able to make it work with the current version.

Thanks for your great work. 👍

activeguild commented 1 year ago

@tomahl

Should be fixed in with!

"vite-plugin-sass-dts": "^1.2.4"

Thanks for the issue!!

tomahl commented 1 year ago

You're awesome, thanks for the fast fix. 👍