sb-babel-cli

raw JSON →
5.1.1 verified Sat Apr 25 auth: no javascript deprecated

A smarter babel-cli wrapper by Steelbrain. Version 5.1.1 is the latest stable release. It wraps the official Babel CLI with additional features like file watching, improved error handling, and a simpler API. Not actively maintained; the author recommends using @babel/cli directly. Requires Node >= 10.

error Error: Cannot find module 'sb-babel-cli'
cause Package not installed or used incorrectly as a module import.
fix
Use npx or install globally: npm install -g sb-babel-cli
error ReferenceError: babel is not defined
cause Trying to import sb-babel-cli as a CommonJS module.
fix
sb-babel-cli is a CLI tool, not a library. Use it from command line.
deprecated Package is deprecated in favor of @babel/cli
fix Switch to @babel/cli (official Babel CLI).
breaking Breaking changes between sb-babel-cli and @babel/cli in CLI flags
fix Review Babel CLI documentation and adjust command line arguments.
gotcha Node >= 10 required; lower versions may fail silently.
fix Upgrade Node to version 10 or higher.
npm install sb-babel-cli
yarn add sb-babel-cli
pnpm add sb-babel-cli

Installs sb-babel-cli globally and compiles src/ to lib/.

npm install -g sb-babel-cli
sb-babel-cli src --out-dir lib