{"library":"rollup-plugin-ts-treeshaking","title":"rollup-plugin-ts-treeshaking","description":"Rollup plugin that improves TypeScript tree-shaking by replacing `/** @class */` annotations (generated by TypeScript) with `/*@__PURE__*/` comments, enabling UglifyJS/Terser dead code elimination. Version 1.0.2, minimal release cadence. Differentiator: simple transformation approach vs. full AST manipulation.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-ts-treeshaking"],"cli":null},"imports":["import tsTreeshaking from 'rollup-plugin-ts-treeshaking'","import tsTreeshaking from 'rollup-plugin-ts-treeshaking'","import type { Options } from 'rollup-plugin-ts-treeshaking'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import typescript from 'rollup-plugin-typescript2';\nimport tsTreeshaking from 'rollup-plugin-ts-treeshaking';\n\nexport default {\n  input: 'src/index.ts',\n  output: {\n    file: 'dist/bundle.js',\n    format: 'iife',\n  },\n  plugins: [\n    typescript({ useTsconfigDeclarationDir: true }),\n    tsTreeshaking(),\n  ],\n};","lang":"typescript","description":"Configure Rollup with typescript2 plugin and ts-treeshaking to enable Terser dead code elimination via @__PURE__ annotations.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}