{"id":24970,"library":"babili-standalone","title":"babili-standalone","description":"Standalone build of Babili (babel-minify) for use in non-Node.js environments including browsers. Version 0.0.10 is the latest stable release. This package is deprecated in favor of babel-standalone's minify preset. It provides a browser-friendly API (Babili.transform) and can be loaded via CDN, Bower, or npm. Key differentiator: It allows client-side ES6+ minification without Node.js setup, but requires Babel-standalone to be loaded first.","status":"deprecated","version":"0.0.10","language":"javascript","source_language":"en","source_url":"https://github.com/Daniel15/babel-standalone","tags":["javascript","babel-preset","babel-standalone","babel","6to5","minify","uglify"],"install":[{"cmd":"npm install babili-standalone","lang":"bash","label":"npm"},{"cmd":"yarn add babili-standalone","lang":"bash","label":"yarn"},{"cmd":"pnpm add babili-standalone","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Babili requires Babel to be loaded first for transformation","package":"babel-standalone","optional":false}],"imports":[{"note":"No ES module exports; use global variable. Avoid import/require in Node as it is not ESM-compatible.","wrong":"import Babili from 'babili-standalone';","symbol":"default (Babili)","correct":"// UMD - loaded via <script> tag\nconst Babili = window.Babili;"},{"note":"Only synchronous transform available; no async variant.","wrong":"Babili.transformAsync(source, options);","symbol":"transform","correct":"Babili.transform(source, options);"},{"note":"Property is lowercase 'version'.","wrong":"Babili.VERSION;","symbol":"version","correct":"Babili.version;"}],"quickstart":{"code":"<!DOCTYPE html>\n<html>\n<head>\n  <meta charset=\"utf-8\">\n  <title>Babili-standalone example</title>\n</head>\n<body>\n  <script src=\"https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.26.0/babel.min.js\"></script>\n  <script src=\"https://cdnjs.cloudflare.com/ajax/libs/babili-standalone/0.0.10/babili.min.js\"></script>\n  <script>\n    var input = 'class Foo { constructor(bar) { this.bar = bar; } }; new Foo();';\n    var output = Babili.transform(input).code;\n    console.log(output);\n  </script>\n</body>\n</html>","lang":"javascript","description":"Shows how to include Babel and Babili scripts from CDN, then run synchronous minification on a simple ES6 class."},"warnings":[{"fix":"Use babel-standalone with @babel/preset-minify instead.","message":"babili-standalone is deprecated in favor of @babel/preset-minify in babel-standalone.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Load babel.min.js before babili.min.js in your HTML.","message":"Babili.transform requires Babel-standalone to be loaded first.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"If you need async, switch to babel-standalone with minify preset and use Babel.transformAsync.","message":"Only synchronous transform; no support for asynchronous or streaming transformations.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Ensure babel.min.js is loaded before babili.min.js and both scripts are in the page.","cause":"Babili script loaded before Babel script, or not loaded at all.","error":"ReferenceError: Babili is not defined"},{"fix":"Check that you are using the correct CDN URL: https://cdnjs.cloudflare.com/ajax/libs/babili-standalone/0.0.10/babili.min.js","cause":"Babili object is undefined or incorrect library version.","error":"Babili.transform is not a function"},{"fix":"Use babel-standalone with @babel/preset-minify for Node.js usage.","cause":"Node.js environment is not supported; this is browser-only.","error":"Cannot find module 'babili-standalone' (when using require)"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}