{"id":20524,"library":"rollup-babel","title":"rollup-babel","description":"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.","status":"deprecated","version":"0.6.3","language":"javascript","source_language":"en","source_url":null,"tags":["javascript"],"install":[{"cmd":"npm install rollup-babel","lang":"bash","label":"npm"},{"cmd":"yarn add rollup-babel","lang":"bash","label":"yarn"},{"cmd":"pnpm add rollup-babel","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package does not support ESM imports; use CommonJS require.","wrong":"import rollup from 'rollup-babel';","symbol":"default","correct":"const rollup = require('rollup-babel');"},{"note":"Access the internal rollup function via the package's export; otherwise you'd get the upstream Rollup package.","wrong":"const { rollup } = require('rollup');","symbol":"rollup","correct":"const rollup = require('rollup-babel').rollup;"},{"note":"No VERSION export; read from package.json.","wrong":"import { VERSION } from 'rollup-babel';","symbol":"VERSION","correct":"const VERSION = require('rollup-babel/package.json').version;"}],"quickstart":{"code":"const rollup = require('rollup-babel');\nrollup({\n  input: 'src/main.js',\n  plugins: []\n}).then(bundle => {\n  bundle.write({\n    format: 'cjs',\n    file: 'dist/bundle.js'\n  });\n});","lang":"javascript","description":"Basic usage of rollup-babel: require the package and use it like Rollup with Babel integration."},"warnings":[{"fix":"Replace with rollup-plugin-babel: npm install --save-dev rollup-plugin-babel","message":"rollup-babel is deprecated. Use rollup-plugin-babel instead.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Migrate to rollup-plugin-babel which supports caching.","message":"No caching mechanism; every build re-transpiles all files.","severity":"breaking","affected_versions":"all"},{"fix":"Use rollup-plugin-babel for sourcemap support.","message":"Sourcemaps are not supported; Babel-generated sourcemaps are discarded.","severity":"gotcha","affected_versions":"all"},{"fix":"Use 'rollupbabel' on the command line.","message":"CLI command is 'rollupbabel', not 'rollup-babel'.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run: npm install --save-dev rollup","cause":"rollup is a peer dependency and must be installed separately.","error":"Error: Cannot find module 'rollup'"},{"fix":"Install: npm install rollup-babel (deprecated); better to install rollup-plugin-babel instead.","cause":"Package not installed or deprecated package name used incorrectly.","error":"Error: Cannot find module 'rollup-babel'"},{"fix":"Use const rollup = require('rollup-babel'); instead of import.","cause":"Incorrect import method; package must be used with require.","error":"TypeError: rollup is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}