Bublé is a fast ES2015+ to ES5 compiler that requires zero configuration. Version 0.20.0 is current but in maintenance mode. It was designed before modern browsers supported ES2015, and now only recommended for IE11 compatibility. Unlike Babel, Bublé does not require plugins or presets, making it simpler but less extensible. It supports ES2015 features like arrow functions, template literals, destructuring, and let/const, plus some ES2016/ES2017 features (exponentiation, async/await). No new features will be added; only bugfixes.
npm install bubleNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage of Bublé's transform function: compile arrow function to ES5, disable module transformation.
Consider Babel or SWC for modern needs unless IE11 support is required.
Update userland plugins to be compatible with acorn 5+.
Use Babel or TypeScript for those features.
npm install magic-string@^0.25.0 as a dependency.
Run `npm install buble` which includes acorn as a dependency.
Use `const buble = require('buble');` instead of `import buble from 'buble';`.Add option `transforms: { modules: false }` or use Babel for ES modules.