Registry / devops / rollup-babel

rollup-babel

JSON →
library0.6.3jsnpmunverified

Deprecated Rollup plugin for Babel integration. Version 0.6.3 is the last release. It aimed to combine Rollup's bundling with Babel's transpilation to avoid duplicate helpers and improve build speed. Superseded by rollup-plugin-babel, which provides proper caching, sourcemap support, and better Rollup hooks. Not recommended for new projects.

npm install rollup-babel
INSTALL
IMPORT
SIG · ROLLUP-BABEL
R
rollup-babel
devopsjavascriptv0.6.3
Install
—
Import
—
Disk
—
Pass rate
0/ 6
Env Coverage0 / 6
glibc
18–22
musl
18–22
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 18–226 runs
build_error
glibc
node 18–226 runs
build_error
Code
Verified usage

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

default
✓ const rollup = require('rollup-babel');
✗ import rollup from 'rollup-babel';
Package does not support ESM imports; use CommonJS require.
rollup
✓ const rollup = require('rollup-babel').rollup;
✗ const { rollup } = require('rollup');
Access the internal rollup function via the package's export; otherwise you'd get the upstream Rollup package.
VERSION
✓ const VERSION = require('rollup-babel/package.json').version;
✗ import { VERSION } from 'rollup-babel';
No VERSION export; read from package.json.

Basic usage of rollup-babel: require the package and use it like Rollup with Babel integration.

const rollup = require('rollup-babel'); rollup({ input: 'src/main.js', plugins: [] }).then(bundle => { bundle.write({ format: 'cjs', file: 'dist/bundle.js' }); });
Debug
Known issues
deprecatedrollup-babel is deprecated. Use rollup-plugin-babel instead.
fix
Replace with rollup-plugin-babel: npm install --save-dev rollup-plugin-babel
affects: >=0.0.0
breakingNo caching mechanism; every build re-transpiles all files.
fix
Migrate to rollup-plugin-babel which supports caching.
affects: all
gotchaSourcemaps are not supported; Babel-generated sourcemaps are discarded.
fix
Use rollup-plugin-babel for sourcemap support.
affects: all
gotchaCLI command is 'rollupbabel', not 'rollup-babel'.
fix
Use 'rollupbabel' on the command line.
affects: all
Errors
Common errors & fixes
Error: Cannot find module 'rollup'
rollup is a peer dependency and must be installed separately.
fix
Run: npm install --save-dev rollup
Error: Cannot find module 'rollup-babel'
Package not installed or deprecated package name used incorrectly.
fix
Install: npm install rollup-babel (deprecated); better to install rollup-plugin-babel instead.
TypeError: rollup is not a function
Incorrect import method; package must be used with require.
fix
Use const rollup = require('rollup-babel'); instead of import.
Upgrade
Version history
0.6.3latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
rollup-babel — npm install rollup-babel · libregistry