typed-css-modules icon indicating copy to clipboard operation
typed-css-modules copied to clipboard

Issues when generated empty files

Open DavidBabel opened this issue 5 years ago • 3 comments

Typescript seems to complain with empty file. For example with a css file which only contains global declarations.

It may be great to just add a /* empty */ comment to prevent errors in rollup builds (for example) : image

Thanks ! Your plugin is amazing !

DavidBabel avatar Jul 22 '19 09:07 DavidBabel

an export {} can fix this

mohsen1 avatar Jul 22 '19 17:07 mohsen1

typescript > 2.6 disallow that. There is an issue about that in this repo

DavidBabel avatar Jul 22 '19 17:07 DavidBabel

@DavidBabel are you sure it's not export default {} that is not allowed in TS > 2.6? export {} seems acceptable.

tgelu avatar Jul 21 '21 11:07 tgelu