HarveyD / react-component-library

A project skeleton to get your very own React Component Library up and running using Rollup, Typescript, SASS + Storybook
https://blog.harveydelaney.com/creating-your-own-react-component-library/
MIT License
790 stars 167 forks source link

Why you don't use official TypeScript plugin? #21

Closed mnlbox closed 3 years ago

mnlbox commented 4 years ago

Hi @HarveyD, As I checked rollup has an official TypeScript plugin here: https://github.com/rollup/plugins/tree/master/packages/typescript

Why you prefer rollup-plugin-typescript2 to this? Any specific feature exists in this?

HarveyD commented 4 years ago

Yeah good question. I don't think you can go wrong using either. From the rollup-plugin-typescript2, it's said that:

This version is somewhat slower than original, but it will print out typescript syntactic and semantic diagnostic messages (the main reason for using typescript after all).

Which I find to be helpful in development :).