{"library":"ts-transformer-strip-const-enums","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"2.0.0","tags":["javascript","const-enum","custom-transformer","preserveConstEnums","transformer","typescript"],"last_verified":"Thu Jun 04","install":[{"cmd":"npm install ts-transformer-strip-const-enums","imports":["import { stripConstEnums } from 'ts-transformer-strip-const-enums'","import stripConstEnums from 'ts-transformer-strip-const-enums'","const stripConstEnums = require('ts-transformer-strip-const-enums').default","import type { stripConstEnums } from 'ts-transformer-strip-const-enums'","const { stripConstEnums } = await import('ts-transformer-strip-const-enums')"]},{"cmd":"yarn add ts-transformer-strip-const-enums","imports":[]},{"cmd":"pnpm add ts-transformer-strip-const-enums","imports":[]}],"homepage":"https://github.com/timocov/ts-transformer-strip-const-enums","github":"https://github.com/timocov/ts-transformer-strip-const-enums","docs":null,"changelog":null,"pypi":null,"npm":"ts-transformer-strip-const-enums","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}