Improve TypeScript tree-shaking with Rollup and UglifyJS/Terser
npm install rollup-plugin-ts-treeshakingImprove TypeScript tree-shaking with Rollup and UglifyJS/Terser.
Uses rollup-plugin-replace to replace /* @class / annotations generated by TypeScript with /@__PURE__/ that can be used by uglifyjs, uglify-es and terser for dead code elimination.

```
npm i -D rollup-plugin-ts-treeshaking
``
yarn add -D rollup-plugin-ts-treeshaking
`js
import typescript from 'rollup-plugin-typescript2';
import tsTreeshaking from 'rollup-plugin-ts-treeshaking';
export default {
plugins: [
typescript(),
tsTreeshaking(),
/ ... /
],
/ ... /
};
`
#### js
Enables processing of .js and .jsx files in addition to .ts and .tsx.
type: boolean true`
default: