A Babel transformer plugin for the Cogs build system, enabling transpilation of ES2015+ JavaScript using Babel. Version 4.0.2 is the latest stable release. This package integrates Babel into the Cogs pipeline, allowing developers to leverage Babel plugins and presets for module transformation. It is specifically designed for Cogs and not suitable for standalone Babel usage. The transformer hooks into Cogs' built-in caching and file watching. Note that this package is a thin wrapper around babel-core and requires Cogs as a peer dependency. Unlike standalone Babel CLI or webpack loaders, this transformer is tightly coupled to Cogs' build process.
npm install cogs-transformer-babelNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures Cogs to transpile .js files using Babel with @babel/preset-env.
Upgrade babel-core to v7 and adjust presets/plugins accordingly.
Install both: npm install cogs cogs-transformer-babel babel-core
Migrate to Babel 7 presets and plugins.
run npm install babel-core
Ensure babel-core is version 7.x.