domingues / rollup-plugin-css-chunks

Rollup plugin to extract CSS into chunks
MIT License
14 stars 8 forks source link

Setup TypeScript #6

Closed benmccann closed 4 years ago

benmccann commented 4 years ago

Closes https://github.com/domingues/rollup-plugin-css-chunks/issues/5

I was wondering if you'd be open to this change. I think it's a lot easier to work with TypeScript because VS Code will autocomplete all the Rollup types so it's much easier to see what the APIs are, whether my code is valid, etc.

This would also make it a lot easier for me to contribute the code for https://github.com/domingues/rollup-plugin-css-chunks/issues/4 since it's already written in TypeScript.

domingues commented 4 years ago

This is something I had already thought about, for the same reasons that you indicated. However, I have zero experience in TypeScript so I will take a closer look at your changes and read a little about TypeScript setups to understand what is happening. I'll give you news. Thanks!