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
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
:Time to build with
rollup-plugin-typescript2
: