{"id":20528,"library":"rollup-plugin-simple-babel","title":"rollup-plugin-simple-babel","description":"A simple Rollup plugin that wraps Babel to allow seamless transpilation during bundling. Version 1.0.6 (latest as of early 2019) is stable but low maintenance. It passes all Babel options through via the plugin invocation. Unlike @rollup/plugin-babel, it does not automatically select files or require Babel configuration; it transforms all JavaScript files. Recommended only for trivial setups; most projects should use @rollup/plugin-babel for better integration, performance, and automatic detection of Babel configs.","status":"maintenance","version":"1.0.6","language":"javascript","source_language":"en","source_url":"https://github.com/vovkabelov/rollup-plugin-simple-babel","tags":["javascript","babel","rollup","plugin","rollup-plugin","rollup-babel"],"install":[{"cmd":"npm install rollup-plugin-simple-babel","lang":"bash","label":"npm"},{"cmd":"yarn add rollup-plugin-simple-babel","lang":"bash","label":"yarn"},{"cmd":"pnpm add rollup-plugin-simple-babel","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency; works with Rollup v0.x or v1.x","package":"rollup","optional":false}],"imports":[{"note":"Default export only; named import will break. CJS: const babel = require('rollup-plugin-simple-babel').default","wrong":"import { babel } from 'rollup-plugin-simple-babel'","symbol":"babel","correct":"import babel from 'rollup-plugin-simple-babel'"},{"note":"Must invoke as a function; passing options object directly will be ignored.","wrong":"plugins: [babel({...})] without calling as function","symbol":"babel()","correct":"plugins: [babel()]"},{"note":"Preset names must be full package names (e.g., '@babel/preset-env'), not short names. Babel 7+ requires @babel/ scoped packages.","wrong":"plugins: [babel({presets: ['env']})]","symbol":"babel({presets: [...]})","correct":"plugins: [babel({ presets: ['@babel/preset-env'] })]"}],"quickstart":{"code":"// rollup.config.js\nimport babel from 'rollup-plugin-simple-babel';\nimport resolve from '@rollup/plugin-node-resolve';\n\nexport default {\n  input: 'src/main.js',\n  output: {\n    file: 'dist/bundle.js',\n    format: 'cjs'\n  },\n  plugins: [\n    resolve(),\n    babel({\n      presets: ['@babel/preset-env'],\n      plugins: ['@babel/plugin-transform-runtime']\n    })\n  ]\n};","lang":"javascript","description":"Minimal Rollup config using rollup-plugin-simple-babel with Babel presets and plugins."},"warnings":[{"fix":"Use @rollup/plugin-babel which supports filtering and is actively maintained.","message":"By default, this plugin transforms all files; no 'include' or 'exclude' filtering.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Migrate to @rollup/plugin-babel: npm install @rollup/plugin-babel --save-dev","message":"Package is no longer actively maintained; use @rollup/plugin-babel instead.","severity":"deprecated","affected_versions":">=1.0.0"},{"fix":"Ensure @babel/core and Babel presets/plugins are installed as devDependencies.","message":"Requires Babel 7+; does not work with Babel 6.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Duplicate Babel options in rollup.config.js or use @rollup/plugin-babel which respects babel config files.","message":"Does not read Babel configuration from .babelrc or babel.config.js automatically; you must pass options via plugin.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use default import: import babel from 'rollup-plugin-simple-babel'","message":"Package exports a single default function; named import (import { babel }) is undefined.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run: npm install @babel/core --save-dev","cause":"@babel/core is not installed or not properly resolved","error":"TypeError: Cannot read property 'transform' of undefined"},{"fix":"Run: npm install @babel/preset-env --save-dev","cause":"Babel preset not installed","error":"Error: Cannot find module '@babel/preset-env'"},{"fix":"Use default import: import babel from 'rollup-plugin-simple-babel'","cause":"Using named import or wrong import style","error":"TypeError: babel is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}