Registry / devops / babel-plugin-turbo-name

babel-plugin-turbo-name

JSON →
library2.1.1jsnpmunverified

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.

npm install babel-plugin-turbo-name
INSTALL
IMPORT
SIG · BABEL-PLUGIN-TURBO
B
babel-plugin-turbo-name
devopsjavascriptv2.1.1
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import turboNamePlugin from 'babel-plugin-turbo-name'
const turboNamePlugin = require('babel-plugin-turbo-name')
ESM-only as of v2; use default import.
babelPreset
import { babelPreset } from 'babel-plugin-turbo-name/preset'
const babelPreset = require('babel-plugin-turbo-name').babelPreset
Exported from subpath preset; require is unsupported in ESM-only modules.

Shows how to configure Babel with the plugin to mangle variable names using turbo-name.

// babel.config.js module.exports = { plugins: [['babel-plugin-turbo-name', { turbo: 'name' }]] }; // Example input const x = 'hello'; // Output: mangled variable name
Debug
Known issues
breakingESM-only since v2; require() will fail.
fix
Use import syntax instead of require.
affects: >=2.0.0
gotchaDefault export only; named export 'babelPreset' removed in v2.
fix
Use default import for the plugin; for preset, import from subpath 'babel-plugin-turbo-name/preset'.
affects: >=2.0.0
Errors
Common errors & fixes
Error: Cannot find module 'babel-plugin-turbo-name'
Missing local installation.
fix
npm install babel-plugin-turbo-name --save-dev
TypeError: (0 , _turboName.default) is not a function
Using require() on ESM-only module.
fix
Use import statement: import turboNamePlugin from 'babel-plugin-turbo-name'
Upgrade
Version history
2.1.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
babel-plugin-turbo-name — npm install babel-plugin-turbo-name · libregistry