Registry / devops / pob-babel

pob-babel

JSON →
library45.0.1jsnpmunverified

Pob Babel is a build and watch tool using Babel and TypeScript, part of the Pob monorepo toolchain. The current stable version is 45.0.1, requiring Node.js >=22.18.0. It integrates Babel compilation with TypeScript type-checking, providing a streamlined development workflow for JavaScript and TypeScript projects. Key differentiators include automatic dependency handling, watch mode, and integration with other Pob tools like @pob/version and pob-dependencies.

npm install pob-babel
INSTALL
IMPORT
SIG · POB-BABEL
P
pob-babel
devopsjavascriptv45.0.1
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.

pob-babel
import pobBabel from 'pob-babel'
const pobBabel = require('pob-babel')
ESM-only package, default export
build
import { build } from 'pob-babel'
const build = require('pob-babel/build')
Named export for build function
watch
import { watch } from 'pob-babel'
const watch = require('pob-babel').watch
Named export for watch function

Shows basic build and watch usage with TypeScript, Babel config, and cleaning.

import { build, watch } from 'pob-babel'; // Build once await build({ cwd: process.cwd(), config: './babel.config.js', typescript: true, clean: true }); // Watch mode const watcher = watch({ cwd: process.cwd(), config: './babel.config.js', typescript: true }); watcher.on('change', (file) => console.log(`File changed: ${file}`)); watcher.start();
pob-babel --version
Debug
Known issues
breakingNode.js >=22.18.0 required as of version 45.0.0
fix
Upgrade Node.js to version 22.18.0 or later
affects: >=45.0.0
breakingESM-only: CommonJS require() not supported since v45
fix
Use import syntax or dynamic import()
affects: >=45.0.0
deprecatedThe 'watch' callback API deprecated in favor of event emitter
fix
Use watcher.on('change', cb) instead of passing callback to watch()
affects: >=44.0.0 <45.0.0
gotchaTypeScript config must be in tsconfig.json, not in Babel config
fix
Place TypeScript options in tsconfig.json; Babel only handles transpilation
affects: >=40.0.0
breakingRemoved support for .babelrc; use babel.config.js instead
fix
Migrate to babel.config.js or babel.config.cjs
affects: >=40.0.0
Errors
Common errors & fixes
Error: Cannot find module 'pob-babel'
Package not installed or import path incorrect
fix
Run 'npm install pob-babel' and use correct import: import pobBabel from 'pob-babel'
TypeError: pobBabel.build is not a function
Using default import but trying to call build as a method
fix
Use named import: import { build } from 'pob-babel'
Error: Requires Node.js 22.18.0 or higher
Node.js version too old
fix
Upgrade Node.js to version >=22.18.0
SyntaxError: Cannot use import statement outside a module
Using ESM import in a CommonJS project without proper configuration
fix
Add 'type': 'module' to package.json or use .mjs extension
Upgrade
Version history
45.0.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
24
OpenAI (training)
1
Resources
pob-babel — npm install pob-babel · libregistry