A Babel compiler plugin for Constellate projects, Version 0.14.0. This plugin integrates Babel into the Constellate build pipeline, allowing transformation of JavaScript/TypeScript code. It is part of the Constellate monorepo and is released on npm. Use it to transpile modern JS to older syntax as part of a Constellate build. Alternatives include other compiler plugins like TypeScript or Terser. Note: This is a plugin meant to be used with the Constellate CLI, not standalone.
npm install constellate-plugin-compiler-babelNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates importing the Babel plugin and using it with Constellate to compile a JavaScript file with @babel/preset-env.
Use the plugin with Constellate's compile function.
Follow Constellate releases for migration.
Run npm install @babel/core.
npm install @babel/core
Use import babel from 'constellate-plugin-compiler-babel'.
Pass presets as array, e.g., babel({ presets: ['@babel/preset-env'] })