Registry / serialization / mu-babel

mu-babel

JSON →
library0.0.2jsnpmunverified

An unofficial fork/package of Babel (formerly 6to5) that transpiles ES6/ES2015 to readable ES5 with source maps. Version 0.0.2 is an early snapshot from the Babel v5 era (circa 2015), long superseded by modern Babel versions. This package is not maintained and should not be used in new projects. Key differentiator: claims readable output, but functionally identical to early Babel releases. Users should prefer the official babel package at v7+.

npm install mu-babel
INSTALL
IMPORT
SIG · MU-BABEL
M
mu-babel
serializationjavascriptv0.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

mu-babel
import babel from 'mu-babel'
const babel = require('mu-babel')
Package exposes a default export similar to Babel v5. Usage from mu-babel is identical to early babel packages.
babel.transform
import babel from 'mu-babel'; babel.transform(code, options)
import { transform } from 'mu-babel'
The package does not export transform as a named export; it is a method on the default export.
babel.version
import babel from 'mu-babel'; console.log(babel.version)
import { version } from 'mu-babel'
Version property on the default export.

Shows how to transpile a simple const declaration using mu-babel with source maps.

const babel = require('mu-babel'); const result = babel.transform('const x = 1;', { sourceMaps: true }); console.log(result.code); // 'use strict'; // var x = 1;
babel --version
Debug
Known issues
breakingPackage mu-babel is an unmaintained fork of Babel v5.x. It lacks support for modern JavaScript (ES2016+), plug-in system, and bug fixes.
fix
Migrate to the official babel package: npm uninstall mu-babel && npm install --save-dev @babel/core @babel/cli @babel/preset-env
affects: >=0.0.1
deprecatedThe API mirror is Babel v5, which is obsolete. Methods like babel.transform() differ from @babel/core.
fix
Use @babel/core and consult its documentation for API changes.
affects: >=0.0.1
gotchaThe package name mu-babel is easily confused with the official babel packages. Installing it may lead to missing security patches and incompatibilities.
fix
Always install @babel/core (or babel-cli) from the official scoped package.
affects: >=0.0.1
Errors
Common errors & fixes
Cannot find module 'mu-babel'
Package may not be installed or is misspelled.
fix
Run: npm install mu-babel
mu-babel: Cannot read property 'transform' of undefined
Importing the module incorrectly (e.g., using named import for transform).
fix
Use: import babel from 'mu-babel'; then babel.transform(...)
Upgrade
Version history
0.0.2latest on npm
Audit
Dependencies

No dependency data recorded yet.

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