Registry / devops / broccoli-sabel

broccoli-sabel

JSON →
library0.3.6jsnpmunverified

Broccoli plugin for simple Babel transpilation (sabel is a lightweight Babel wrapper). Version 0.3.6 is the latest, but the package appears unmaintained (last release years ago). It provides a thin layer for running Babel transforms within Broccoli builds, but alternatives like broccoli-babel-transpiler or direct use of Babel are recommended for active support.

npm install broccoli-sabel
INSTALL
IMPORT
SIG · BROCCOLI-SABEL
B
broccoli-sabel
devopsjavascriptv0.3.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

sabel
import sabel from 'broccoli-sabel'
const sabel = require('broccoli-sabel')
ESM default import; may work with require but not guaranteed.
Sabel
import Sabel from 'broccoli-sabel'
import { Sabel } from 'broccoli-sabel'
Default export is the Sabel class; named import not supported.

Creates a Broccoli tree that transpiles files in 'src' using Babel with @babel/preset-env and source maps.

import sabel from 'broccoli-sabel'; import { writeFileSync } from 'fs'; const tree = sabel('src', { presets: ['@babel/preset-env'], sourceMaps: true }); // In Brocfile.js or similar, return tree export default tree;
Debug
Known issues
deprecatedPackage is deprecated; use broccoli-babel-transpiler or @babel/core directly.
fix
Replace with broccoli-babel-transpiler: npm install --save-dev broccoli-babel-transpiler
affects: >=0.0.0
gotchaRequires babel-core (Babel 6) which is outdated; may not work with Babel 7+.
fix
Use broccoli-babel-transpiler which supports Babel 7.
affects: >=0.3.0
gotchaOnly works within Broccoli build system; not standalone.
fix
Ensure you are using Broccoli as your build tool.
affects: >=0.0.0
Errors
Common errors & fixes
Cannot find module 'babel-core'
babel-core is missing or not installed
fix
npm install --save-dev babel-core
Error: Broccoli-sabel: Expected a string or object, got undefined
Missing options argument
fix
Call sabel('src', { presets: [] }) with options object.
Upgrade
Version history
0.3.6latest on npm
Audit
Dependencies
babel-corerequiredcore Babel transpiler dependency
broccolirequiredpeer dependency for Broccoli plugin
Agent activity
9 hits · last 30 days
node
6
Resources
broccoli-sabel — npm install broccoli-sabel · libregistry