playcanvas / pcui

UI component library for web-based tools
http://playcanvas.github.io/pcui
MIT License
664 stars 62 forks source link

Switch build process to the official Rollup TypeScript plugin #290

Closed willeastcott closed 1 year ago

willeastcott commented 1 year ago

This PR switches the PCUI build process from the third party rollup-plugin-typescript2 plugin to the officially maintained @rollup/plugin-typescript. I have verified that the output for the two plugins matches exactly.

One fairly significant benefit is reduced build time. Time to build with @rollup/plugin-typescript:

src/index.ts → dist/module...
created dist/module in 10s

src/index.tsx → react/dist/module...
created react/dist/module in 8.8s

Time to build with rollup-plugin-typescript2:

src/index.ts → dist/module...
created dist/module in 16s

src/index.tsx → react/dist/module...
created react/dist/module in 16.3s