{"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,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","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,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}