constellate-babel
raw JSON → 0.0.7 verified Fri May 01 auth: no javascript abandoned
The Babel configuration and transpiler package for Constellate projects, a universal JavaScript application framework. As of version 0.0.7, this package provides a pre-configured Babel setup tailored for Constellate-based development. It is designed for Node.js >=7 and is part of the Constellate ecosystem, but has seen no active updates since initial release. The package enforces a specific Babel configuration that may not be compatible with other setups, and its limited release cadence suggests early-stage development. Key differentiator: tightly coupled with Constellate's build pipeline.
Common errors
error Error: Cannot find module 'babel-core' ↓
cause Missing peer dependency 'babel-core'
fix
npm install babel-core@6
error Error: .babelrc is not allowed with constellate-babel ↓
cause constellate-babel enforces its own config and ignores project .babelrc
fix
Remove .babelrc or use createConfig to extend.
Warnings
deprecated Package is unmaintained and part of Constellate framework which is no longer active. ↓
fix Migrate to a standalone Babel configuration or modern build tool.
gotcha Requires babel-core as peer dependency which may conflict with Babel 7+. ↓
fix Install babel-core@6 to match peer requirement or use alternative.
gotcha Configuration is rigid and may override custom Babel settings. ↓
fix Review source or avoid mixing with other presets/plugins.
Install
npm install constellate-babel yarn add constellate-babel pnpm add constellate-babel Imports
- default wrong
const constellateBabel = require('constellate-babel')correctimport constellateBabel from 'constellate-babel' - transpile wrong
import transpile from 'constellate-babel'correctimport { transpile } from 'constellate-babel' - createConfig
import { createConfig } from 'constellate-babel'
Quickstart
import constellateBabel from 'constellate-babel';
// Example: transpile a file
const result = constellateBabel.transpile('const x = 1;', {
filename: 'example.js',
presets: [],
});
console.log(result.code);