{"id":25966,"library":"mu-babel","title":"mu-babel","description":"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+.","status":"deprecated","version":"0.0.2","language":"javascript","source_language":"en","source_url":"https://github.com/tav/mu-babel","tags":["javascript","harmony","classes","modules","let","const","var","es6","transpile"],"install":[{"cmd":"npm install mu-babel","lang":"bash","label":"npm"},{"cmd":"yarn add mu-babel","lang":"bash","label":"yarn"},{"cmd":"pnpm add mu-babel","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package exposes a default export similar to Babel v5. Usage from mu-babel is identical to early babel packages.","wrong":"const babel = require('mu-babel')","symbol":"mu-babel","correct":"import babel from 'mu-babel'"},{"note":"The package does not export transform as a named export; it is a method on the default export.","wrong":"import { transform } from 'mu-babel'","symbol":"babel.transform","correct":"import babel from 'mu-babel'; babel.transform(code, options)"},{"note":"Version property on the default export.","wrong":"import { version } from 'mu-babel'","symbol":"babel.version","correct":"import babel from 'mu-babel'; console.log(babel.version)"}],"quickstart":{"code":"const babel = require('mu-babel');\nconst result = babel.transform('const x = 1;', { sourceMaps: true });\nconsole.log(result.code);\n// 'use strict';\n// var x = 1;","lang":"javascript","description":"Shows how to transpile a simple const declaration using mu-babel with source maps."},"warnings":[{"fix":"Migrate to the official babel package: npm uninstall mu-babel && npm install --save-dev @babel/core @babel/cli @babel/preset-env","message":"Package mu-babel is an unmaintained fork of Babel v5.x. It lacks support for modern JavaScript (ES2016+), plug-in system, and bug fixes.","severity":"breaking","affected_versions":">=0.0.1"},{"fix":"Use @babel/core and consult its documentation for API changes.","message":"The API mirror is Babel v5, which is obsolete. Methods like babel.transform() differ from @babel/core.","severity":"deprecated","affected_versions":">=0.0.1"},{"fix":"Always install @babel/core (or babel-cli) from the official scoped package.","message":"The package name mu-babel is easily confused with the official babel packages. Installing it may lead to missing security patches and incompatibilities.","severity":"gotcha","affected_versions":">=0.0.1"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run: npm install mu-babel","cause":"Package may not be installed or is misspelled.","error":"Cannot find module 'mu-babel'"},{"fix":"Use: import babel from 'mu-babel'; then babel.transform(...)","cause":"Importing the module incorrectly (e.g., using named import for transform).","error":"mu-babel: Cannot read property 'transform' of undefined"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}