parcel-plugin-typed-css-modules
parcel-plugin-typed-css-modules copied to clipboard
Add support for `@value` variables
In addition to exporting classNames, we can also export variables in CSS Modules. However, these are not included in the declaration file. Here is a minimal example of what I mean:
/* style.css */
@value bgColor: cadetblue;
/* index.ts */
import styles from './style.css'
// {bgColor: "cadetblue"}
console.log(styles)
Current behaviour:
/* style.css.d.ts */
// empty...
Expected behaviour:
/* style.css.d.ts */
export const bgColor: string