Registry / devops / projen-babel

projen-babel

JSON →
library0.0.27jsnpmunverified

A helper library for configuring Babel in Projen-based projects. Current stable version is 0.0.27. This package provides constructs to integrate Babel transpilation into Projen-managed projects, simplifying setup and ensuring compatibility. It is part of a monorepo maintained by dkershner6, with a focus on providing reusable constructs for common tooling. Differentiators include explicit peer dependencies on projen 0.88.0 and constructs 10.3.0, ensuring deterministic behavior. Released on an as-needed cadence.

npm install projen-babel
INSTALL
IMPORT
SIG · PROJEN-BABEL
P
projen-babel
devopsjavascriptv0.0.27
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

BabelConfig
import { BabelConfig } from 'projen-babel'
const BabelConfig = require('projen-babel').BabelConfig
ESM-only; types included.
BabelProject
import { BabelProject } from 'projen-babel'
import BabelProject from 'projen-babel'
Named export, not default.

Creates a Projen project with a BabelConfig construct, adding Babel configuration.

import { Project } from 'projen'; import { BabelConfig, BabelProject } from 'projen-babel'; const project = new Project({ name: 'my-project', defaultReleaseBranch: 'main', }); new BabelConfig(project, { presets: ['@babel/preset-env'], plugins: ['@babel/plugin-transform-runtime'], }); project.synth();
Debug
Known issues
breakingRequires projen 0.88.0 exactly due to peer dependency strictness.
fix
Use projen 0.88.0 and constructs 10.3.0.
affects: >=0.0.0
deprecatedVersion 0.0.27 may have unannounced breaking changes in minor releases.
fix
Pin exact version in package.json.
affects: >=0.0.0
Errors
Common errors & fixes
Cannot find module 'projen-babel'
Package not installed or missing peer deps
fix
Run npm install projen-babel projen@0.88.0 constructs@10.3.0
SyntaxError: Unexpected token 'export'
Using CommonJS require with ESM-only package
fix
Use import syntax or set "type": "module" in package.json
Upgrade
Version history
0.0.27latest on npm
Audit
Dependencies
constructsrequiredPeer dependency for construct system
projenrequiredPeer dependency for project management
Agent activity
6 hits · last 30 days
node
6
Resources
projen-babel — npm install projen-babel · libregistry