{"library":"babel-preset-const-enum","type":"library","category":null,"description":"Babel preset for transforming TypeScript const enums. Version 1.0.0. It runs babel-plugin-const-enum only on .ts/.tsx files to prevent syntax errors on non-TypeScript files. Provides two transform options: removeConst (default) reverts const enum to regular enum, while constObject inlines values into a const object literal for minification. Must be placed after @babel/preset-typescript in the preset order to work correctly. Lightweight, focused solution for using const enums with Babel.","language":"javascript","status":"active","version":"1.0.0","tags":["javascript","babel-preset","typescript","const","enum","terser","uglify","minify","compress"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-preset-const-enum","imports":["module.exports = require('babel-preset-const-enum')","presets: [['const-enum', { transform: 'constObject' }]]","not applicable"]},{"cmd":"yarn add babel-preset-const-enum","imports":[]},{"cmd":"pnpm add babel-preset-const-enum","imports":[]}],"homepage":null,"github":"https://github.com/dosentmatter/babel-preset-const-enum","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-preset-const-enum","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/babel-preset-const-enum/compatibility"}}