{"id":19234,"library":"babel-plugin-turbo-name","title":"babel-plugin-turbo-name","description":"A Babel plugin that transforms code for the turbo-name system. Version 2.1.1 is the latest stable release. This package is a narrow-purpose Babel transform with no active development or known release cadence. It differs from general-purpose Babel plugins by focusing exclusively on name mangling for the turbo-name optimization framework. No alternative features or integrations are documented.","status":"active","version":"2.1.1","language":"javascript","source_language":"en","source_url":"https://github.com/ssnau/babel-plugin-turbo-name","tags":["javascript"],"install":[{"cmd":"npm install babel-plugin-turbo-name","lang":"bash","label":"npm"},{"cmd":"yarn add babel-plugin-turbo-name","lang":"bash","label":"yarn"},{"cmd":"pnpm add babel-plugin-turbo-name","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM-only as of v2; use default import.","wrong":"const turboNamePlugin = require('babel-plugin-turbo-name')","symbol":"default","correct":"import turboNamePlugin from 'babel-plugin-turbo-name'"},{"note":"Exported from subpath preset; require is unsupported in ESM-only modules.","wrong":"const babelPreset = require('babel-plugin-turbo-name').babelPreset","symbol":"babelPreset","correct":"import { babelPreset } from 'babel-plugin-turbo-name/preset'"}],"quickstart":{"code":"// babel.config.js\nmodule.exports = {\n  plugins: [['babel-plugin-turbo-name', { turbo: 'name' }]]\n};\n// Example input\nconst x = 'hello';\n// Output: mangled variable name\n","lang":"javascript","description":"Shows how to configure Babel with the plugin to mangle variable names using turbo-name."},"warnings":[{"fix":"Use import syntax instead of require.","message":"ESM-only since v2; require() will fail.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Use default import for the plugin; for preset, import from subpath 'babel-plugin-turbo-name/preset'.","message":"Default export only; named export 'babelPreset' removed in v2.","severity":"gotcha","affected_versions":">=2.0.0"}],"env_vars":null,"search_vec":"'2.1.1':19 'activ':36 'altern':64 'babel':2,7,32,48 'babel-plugin-turbo-nam':1 'cadenc':41 'code':11 'develop':37 'differ':43 'document':69 'exclus':52 'featur':65 'focus':51 'framework':62 'general':46 'general-purpos':45 'integr':67 'javascript':70 'known':39 'latest':22 'mangl':55 'name':5,16,54,60 'narrow':30 'narrow-purpos':29 'optim':61 'packag':26 'plugin':3,8,49 'purpos':31,47 'releas':24,40 'stabl':23 'system':17 'transform':10,33 'turbo':4,15,59 'turbo-nam':14,58 'version':18","created_at":"2026-04-25T11:16:44.082899+00:00","updated_at":"2026-04-25T11:16:44.082899+00:00","problems":[{"fix":"npm install babel-plugin-turbo-name --save-dev","cause":"Missing local installation.","error":"Error: Cannot find module 'babel-plugin-turbo-name'"},{"fix":"Use import statement: import turboNamePlugin from 'babel-plugin-turbo-name'","cause":"Using require() on ESM-only module.","error":"TypeError: (0 , _turboName.default) is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/ssnau/babel-plugin-turbo-name","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-turbo-name","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-07-24","install_tag":null}}