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

Option for running on files not included in the bundle #88

Closed MrGVSV closed 5 months ago

MrGVSV commented 10 months ago

It would be nice if this plugin were able to run on non-bundled files as well.

While developing, it's pretty common to not have everything exported (and thus, not included in the bundle) right away. Because of this, it's easy to run into type errors since the d.ts files don't generate for those modules. I think an option to allow the plugin to run on all SCSS module files could be very useful in these situations.

Note: I'm a bundler noob lol so there may be an option or configuration step I'm missing to achieve this.

activeguild commented 5 months ago

@MrGVSV

Thanks. Fixed and released.