babel-standalone provides a standalone, browser-ready build of Babel (v6.26.0) with all standard plugins and presets bundled, enabling ES2015+ transpilation in non-Node.js environments like browsers, REPLs, and embedded JavaScript engines. It is a maintained fork of the deprecated babel-browser package, offering similar functionality with automated updates to align with Babel releases. Key differentiators include automatic compilation of <script type='text/babel'> tags, support for custom plugins/presets, and optional integration with babili-minify. It does not support .babelrc due to lack of file system access, and is not a replacement for build-tool integration in Node-based workflows.
npm install glia-babel-standaloneNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows in-browser usage: load babel-standalone via unpkg, then transform ES6 arrow function with es2015 preset.
Upgrade to v6 and use Babel.transform instead of older babel-browser API.
Always specify presets/plugins explicitly in options or data attributes.
Ensure your script tags use the correct type attribute.
Use presets: ['env'] instead of presets: ['es2015'].
Stick to 6.x for production use.
Use @babel/core in Node environments.
Ensure the <script src='https://unpkg.com/babel-standalone@6/babel.min.js'> tag appears before any script that references Babel.
Use a CDN script tag for browsers, or configure Webpack to resolve browser field. Not recommended for bundling.
Use Babel.registerPreset('env', ...) to register a custom preset or use a bundled preset like 'es2015'.No dependency data recorded yet.