{"id":19355,"library":"babel-pundle","title":"babel-pundle","description":"Babel transformer plugin for Pundle, a JavaScript bundler. Version 1.1.12 is the latest stable release, with v2.0.0-alpha1 introducing breaking architectural changes. This plugin enables Babel transformations within Pundle's build pipeline, supporting custom Babel configuration, file extension filtering, and ignore patterns. Key differentiators: integrates deeply with Pundle's plugin system, but is deprecated in favor of Pundle's built-in Babel support in v2. No active maintenance since 2017.","status":"deprecated","version":"1.1.12","language":"javascript","source_language":"en","source_url":"ssh://git@github.com/steelbrain/pundle","tags":["javascript"],"install":[{"cmd":"npm install babel-pundle","lang":"bash","label":"npm"},{"cmd":"yarn add babel-pundle","lang":"bash","label":"yarn"},{"cmd":"pnpm add babel-pundle","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency - requires Pundle bundler to function","package":"pundle","optional":false},{"reason":"runtime dependency - core Babel transpilation engine","package":"babel-core","optional":false}],"imports":[{"note":"Package is a function that returns a plugin object; ESM import preferred.","wrong":"const babelPundle = require('babel-pundle')","symbol":"default export","correct":"import babelPundle from 'babel-pundle'"},{"note":"Must use require.resolve() and pass options as second array element.","wrong":"pundle.loadPlugins([['babel-pundle', { ignore: ... }]])","symbol":"plugin usage","correct":"pundle.loadPlugins([[require.resolve('babel-pundle'), { config: { ... } }]])"},{"note":"TypeScript types may not be bundled; declare your own interface.","wrong":"","symbol":"type import","correct":"import type { PluginOptions } from 'babel-pundle'"}],"quickstart":{"code":"const pundle = require('pundle');\npundle.loadPlugins([\n  [require.resolve('babel-pundle'), {\n    ignored: /node_modules/,\n    extensions: ['.js', '.jsx'],\n    config: {\n      presets: ['@babel/preset-env']\n    }\n  }]\n]).then(() => console.log('Plugin loaded'));\npundle.bundle('./src/index.js').then(result => {\n  console.log(result.code);\n});","lang":"javascript","description":"Loads the babel-pundle plugin, configures Babel with preset-env, ignores node_modules, and bundles an entry file."},"warnings":[{"fix":"Upgrade to Pundle v2 and use built-in Babel configuration via Pundleconfig.js","message":"babel-pundle is deprecated in favor of Pundle's built-in Babel support in v2+","severity":"deprecated","affected_versions":"<2.0.0"},{"fix":"Do not upgrade to v2 alpha unless you can adapt to new component/preset architecture","message":"Breaking change: v2.0.0-alpha1 changes plugin API; v1.x plugins are incompatible","severity":"breaking","affected_versions":"<2.0.0-alpha1"},{"fix":"Use require.resolve('babel-pundle') to get the absolute path","message":"Common mistake: using plugin name string instead of require.resolve() path","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Pass Babel config under the 'config' property in plugin options","message":"Configuration key is 'config', not 'babel' or 'options'","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-pundle --save' and use require.resolve('babel-pundle')","cause":"Missing npm install or wrong require path","error":"Error: Cannot find module 'babel-pundle'"},{"fix":"Wrap in array: [require.resolve('babel-pundle'), { config: {} }]","cause":"Incorrect plugin syntax; must be an array with path and options","error":"TypeError: plugin is not a function"},{"fix":"Add '@babel/preset-env' to config.presets","cause":"Babel not configured to transpile ES modules","error":"SyntaxError: Unexpected token import"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}