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-babelVerified import paths — ran on the pinned version, not inferred.
Shows a basic build pipeline using start-babel: clean target, read source files, transpile with source maps, write output.
Ensure upstream tasks (e.g., start-read) provide objects with `path`, `data`, `map` properties.
Use Node >= 4. If you need babel-runtime, add it as a direct dependency.
Consider migrating to direct Babel usage or an actively maintained build tool.
Use ES module import syntax, or use a bundler/transpiler that understands ESM.
Pass `ast: true` in the options object to babel() if you require the AST.
Install start: npm install --save-dev start
Use `import babel from 'start-babel'` instead of `import { babel }`.Use `import babel from 'start-babel'` or call `startBabel.default(options)`.
Update all tasks to versions that emit the required object format, or patch the data.
Install and configure Babel presets (e.g., babel-preset-env) in a .babelrc or babel.config.js.