Babel plugin for the Fly build system, version 2.1.1. It allows you to transpile ES6/ES2015+ code using Babel within Fly pipelines. The plugin supports standard Babel options (presets, plugins, sourceMaps, etc.) and a preload feature that automatically loads Babel plugins/presets from package.json. Release cadence is low; last release was in 2018. Key differentiator: tight integration with Fly, including preloading and simple generator-based task syntax. Requires Node >= 4.6 and Fly 2.0+.
npm install fly-babelVerified import paths — ran on the pinned version, not inferred.
Shows basic usage of fly-babel with Babel presets and source maps in a Fly task.
Upgrade Node to >=6.x, or use fly-babel@0.2.1 for Node 4.x support.
Consider migrating to modern build tools like Webpack, Rollup, or esbuild.
Use 'function * (fly) { ... }' syntax. Promises are not supported.Ensure packages are installed and named properly. For custom names, configure presets/plugins manually.
Test source map output; consider using 'inline' or 'both' for simpler debugging.
Run `npm install --save-dev fly-babel` and ensure Fly is configured to load the plugin (e.g., via 'fly clear' or plugin registration).
Install the preset: `npm install --save-dev @babel/preset-env` (or babel-preset-es2015 for older Babel).
Install and configure 'babel-plugin-transform-runtime' or include 'babel-polyfill' in your code.