Registry / devops / babel-preset-taskcluster

babel-preset-taskcluster

JSON →
library3.0.0jsnpmunverified

A Babel preset that transforms Taskcluster ES6+ code into backwards-compatible JavaScript for Node.js environments. The current stable version is 3.0.0. This package is part of the Taskcluster ecosystem and provides a standardized Babel configuration for Taskcluster projects. It is designed to target older Node.js versions (including Node 4) and includes common transforms like ES6 module syntax, arrow functions, and other modern JavaScript features. It is maintenance-focused and not actively updated for newer Babel versions or Node.js releases.

npm install babel-preset-taskcluster
INSTALL
IMPORT
SIG · BABEL-PRESET-TASKC
B
babel-preset-taskcluster
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.

presets
module.exports = { presets: ['babel-preset-taskcluster'] }
import presets from 'babel-preset-taskcluster'
This is a Babel preset, not a regular library. Use in .babelrc or babel.config.js as a preset string.
default
module.exports = { presets: ['babel-preset-taskcluster'] }
require('babel-preset-taskcluster')
In Babel config, presets are referenced by package name directly.
babel-preset-taskcluster
module.exports = { presets: ['babel-preset-taskcluster'] }
{ presets: [require('babel-preset-taskcluster')] }
In Babel configuration files, you use the string name of the preset, not the required module.

How to configure Babel to use the Taskcluster preset in a project.

// In babel.config.js module.exports = { presets: ['babel-preset-taskcluster'] };
Debug
Known issues
deprecatedThis preset targets very old Node.js versions (Node 4). For modern Node.js >=10, consider using @babel/preset-env instead.
fix
Switch to @babel/preset-env with target 'node: current' or specific Node versions.
affects: >=3.0.0
gotchaThe preset is designed specifically for Taskcluster projects. Using it outside that context may include unnecessary transforms.
fix
Evaluate if Taskcluster-specific transforms are needed for your project.
affects: >=1.0.0
gotchaThis preset does not include polyfills. You must provide your own polyfills for features like Promises, Object.assign, etc.
fix
Use core-js or @babel/polyfill (deprecated) in conjunction with this preset.
affects: >=1.0.0
Errors
Common errors & fixes
Cannot find module 'babel-preset-taskcluster'
Preset not installed or incorrect version.
fix
Run npm install --save-dev babel-preset-taskcluster.
Error: Plugin/Preset files are not allowed to export objects, only functions.
Using require() to import the preset instead of the preset name string.
fix
Use the preset name as a string, e.g., presets: ['babel-preset-taskcluster'].
Upgrade
Version history
3.0.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
babel-preset-taskcluster — npm install babel-preset-taskcluster · libregistry