Registry / devops / fly-babel

fly-babel

JSON →
library2.1.1jsnpmunverified

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+.

devopsweb-framework
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Plugin is mounted via Fly's system; user does not import directly. Instead, configure in .fly.js or flyfile.js.

const flyBabel = require('fly-babel'); // used internally by Fly, no direct import in user code

Method is chained on Fly's source/target stream. Must be inside a generator function (function *).

yield fly.source('src/**/*.js').babel({ presets: ['es2015'] }).target('dist/');

preload: true automatically loads Babel plugins/presets from package.json. Default false.

yield fly.source('src/**/*.js').babel({ preload: true }).target('dist/');

Shows basic usage of fly-babel with Babel presets and source maps in a Fly task.

// In your flyfile.js const fly = require('fly'); export default function* (fly) { yield fly.source('src/**/*.js') .babel({ presets: ['@babel/preset-env'], sourceMaps: 'inline' }) .target('dist/'); }
Debug
Known footguns
breakingVersion 2.1.0 dropped Node 4.x support; requires Node >= 6.x.
deprecatedThis plugin is for the legacy Fly build system (flyjs). Fly is no longer maintained.
gotchaThe .babel() method must be called inside a generator function (function *). Using async/await or regular functions will fail.
gotchapreload: true only works if babel plugins/presets are listed in package.json under 'devDependencies' or 'dependencies' and named conventionally (e.g., 'babel-preset-*' or 'babel-plugin-*').
gotchaSource maps may not work correctly if the source is processed by multiple plugins (e.g., fly-clear or fly-concat).
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
9 hits · last 30 days
gptbot
4
ahrefsbot
4
script
1
Resources