A Broccoli plugin for transpiling ES6+ to readable ES5 using Babel, with caching and parallelization. Current stable version 8.0.2 supports Node 16+ and 18+ and requires @babel/core >=7.17.9 as a peer dependency. Key differentiators include persistent caching across rebuilds (via cacheKey/cacheKeyPlugin methods) and async plugin support since v8.0.1. Notable breaking changes in v8 include dropping Node 14 and moving @babel/core to peer deps. Commonly used in Ember.js and other Broccoli-based build pipelines.
npm install broccoli-babel-transpilerVerified import paths — ran on the pinned version, not inferred.
Shows how to use broccoli-babel-transpiler with a Brocfile-like setup: funnel source files, transpile via babel with preset-env targeting modern browsers, then build with Broccoli.
Install @babel/core explicitly in your project: npm install --save-dev @babel/core
Upgrade to Node 16 or 18.
Provide a presets or plugins array in the Babel options.
Define a cacheKey() method that returns a string uniquely representing plugin configuration.
npm install --save-dev @babel/core
Use require('broccoli-babel-transpiler') instead.