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 19 forks source link

Unnecessary properties are created. #75

Closed x6ax6b closed 1 year ago

x6ax6b commented 1 year ago

When using with tailwindcss, if a class has a decimal point, the generated type has an unnecessary property.

source:

.test {
  @apply px-1.5;
}

d.ts:

declare const classNames: {
  readonly test: 'test';
  readonly '5': '5';
};
export = classNames;
activeguild commented 1 year ago

@x6ax6b

Thank you. We have responded and released the following version.

vite-plugin-sass-dts: 1.3.4