ts-transformer-strip-const-enums
JSON →A TypeScript custom transformer that strips const enum declarations when preserveConstEnums is enabled and the const enum is not exported. Current stable version is 2.0.0. It helps reduce bundle size by removing unused const enums, which is particularly useful for library authors. Unlike ttypescript or ts-patch, this transformer can be used with any build tool that supports custom transformers (e.g., Webpack, Rollup). Release cadence is irregular; peer dependency requires TypeScript >=5.0.0.