Closed pschyma closed 1 year ago
@pschyma
Thank you for the issue!!
We believe it can be corrected by referring to the following. https://github.com/vitejs/vite/blob/7a97a04b2a39e2c50aff8fe4ef3ca2e82fca6184/packages/vite/src/node/plugins/css.ts#L929-L952
The final css output from the vite has nothing to do with the type, so it did not need to be taken into account when creating the type.
I'm having problems generating
.d.ts
files for modules like:The vite css plugin generates the following object:
But the generated
.d.ts
file is:As this is a legacy project being moved to vite, I'd like to generate files that match the ones "generated" by CRA.
In our
vite.config.ts
we have:We needed to use the custom
localsConvention
to achieve the match for class names (as the code base has inconsistent class names, e.g.FirstClass
,second-class
orthirdClass
).