An ENB tech that transpiles JavaScript files with ES6+ syntax to ES5 using Babel. Current stable version 0.1.2. Designed for the ENB build system, it processes files through a user-defined chain of transformations, including Babel transpilation and custom code wrapping. Differentiators: tight integration with ENB and BEM technologies, supports per-target configuration with source suffixes and chain modifiers. Released as an npm package with MIT license, maintained by b0rey. Minimal release cadence; last update in 2018.
npm install enb-transpilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures an ENB node to transpile vanilla.js and worker.js files using Babel with env preset, adding global and ym stubs.
Replace 'options' with 'params' in tech configuration.
Install 'babel-core@7' and set 'params' to use Babel 7 presets/plugins.
Ensure the chain array ends with 'source'.
Always specify 'sourceSuffixes' matching your file extensions.
Use alternative ENB techs if sourcemaps are required.
npm install --save-dev babel-core
Replace with object: { presets: ['env'] }Add 'node.addTarget('?.worker.js')' after the addTech call.Ensure chain array ends with 'source'.