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
muslnode 18–226 runs
build_error
glibcnode 18–226 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.0fixUpgrade Node.js to version 22.18.0 or later
affects: >=45.0.0
breakingESM-only: CommonJS require() not supported since v45fixUse import syntax or dynamic import()
affects: >=45.0.0
deprecatedThe 'watch' callback API deprecated in favor of event emitterfixUse 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 configfixPlace TypeScript options in tsconfig.json; Babel only handles transpilation
affects: >=40.0.0
breakingRemoved support for .babelrc; use babel.config.js insteadfixMigrate 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
fixRun '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
fixUse named import: import { build } from 'pob-babel' Error: Requires Node.js 22.18.0 or higher
Node.js version too old
fixUpgrade 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
fixAdd 'type': 'module' to package.json or use .mjs extension
Audit
Dependencies
No dependency data recorded yet.