Registry / devops / start-babel

start-babel

JSON →
library3.0.0jsnpmunverified

Babel task for the Start task runner. Current stable version is 3.0.0 (released 2017-01-07). It integrates Babel transpilation into Start pipelines, supporting SourceMaps and configurable Babel options. Key differentiator: it operates on `[{ path, data, map }]` streams, making it compatible with Start's file-based flow. For newer Node versions, Babel 7+, or non-Start setups, consider using core Babel APIs or other runners like Gulp or Webpack.

npm install start-babel
INSTALL
IMPORT
SIG · START-BABEL
S
start-babel
devopsjavascriptv3.0.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
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.

default
import babel from 'start-babel'
const babel = require('start-babel')
ESM-only since v3.0.0; CommonJS require may fail depending on Node version and transpilation.
babel
import babel from 'start-babel'
import { babel } from 'start-babel'
Default export only; named export does not exist.
babel
import * as startBabel from 'start-babel'; startBabel.default(options)
import * as startBabel from 'start-babel'; startBabel(options)
Namespace import requires calling .default; direct call without .default will fail.

Shows a basic build pipeline using start-babel: clean target, read source files, transpile with source maps, write output.

import Start from 'start'; import reporter from 'start-pretty-reporter'; import files from 'start-files'; import clean from 'start-clean'; import read from 'start-read'; import babel from 'start-babel'; import write from 'start-write'; const start = Start(reporter()); export const build = () => start( files('build/'), clean(), files('src/**/*.js'), read(), babel({ sourceMaps: true }), write('build/') );
Debug
Known issues
breakingInput data format changed in v2.0.0: now expects `[{ path, data, map }]` instead of raw file buffers.
fix
Ensure upstream tasks (e.g., start-read) provide objects with `path`, `data`, `map` properties.
affects: >=2.0.0
breakingDropped Node < 4 in v3.0.0; also switched to `babel-preset-start` and removed `babel-runtime` dependency.
fix
Use Node >= 4. If you need babel-runtime, add it as a direct dependency.
affects: >=3.0.0
deprecatedThis package is not actively maintained; last release was 2017. Babel 7+ and new Start versions may cause incompatibility.
fix
Consider migrating to direct Babel usage or an actively maintained build tool.
affects: >=3.0.0
gotchaESM-only since v3.0.0; CommonJS require may fail if not transpiled or if Node version lacks ESM support.
fix
Use ES module import syntax, or use a bundler/transpiler that understands ESM.
affects: >=3.0.0
gotchaDefault Babel options set `{ ast: false }`. If you need AST in output, you must explicitly override.
fix
Pass `ast: true` in the options object to babel() if you require the AST.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'start'
start (task runner) is required as a peer dependency and not installed.
fix
Install start: npm install --save-dev start
TypeError: (0 , _startBabel.default) is not a function
Using named import `import { babel }` instead of default import.
fix
Use `import babel from 'start-babel'` instead of `import { babel }`.
TypeError: startBabel is not a function
Namespace import used without calling `.default`.
fix
Use `import babel from 'start-babel'` or call `startBabel.default(options)`.
Error: Input data must be an array of objects with { path, data, map }
Using an older task (e.g., start-read prior to v2) that emits raw buffers.
fix
Update all tasks to versions that emit the required object format, or patch the data.
Error: unknown: Unexpected token (1:0)
Babel cannot parse the file; often due to missing Babel presets/plugins.
fix
Install and configure Babel presets (e.g., babel-preset-env) in a .babelrc or babel.config.js.
Upgrade
Version history
3.0.0latest on npm
Audit
Dependencies
startrequiredStart task runner is a peer dependency; start-babel requires it to run.
Agent activity
4 hits · last 30 days
node
4
Resources
start-babel — npm install start-babel · libregistry