Registry / devops / babel-pundle

babel-pundle

JSON →
library1.1.12jsnpmunverified

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.

npm install babel-pundle
INSTALL
IMPORT
SIG · BABEL-PUNDLE
B
babel-pundle
devopsjavascriptv1.1.12
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
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 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

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

default export
import babelPundle from 'babel-pundle'
const babelPundle = require('babel-pundle')
Package is a function that returns a plugin object; ESM import preferred.
plugin usage
pundle.loadPlugins([[require.resolve('babel-pundle'), { config: { ... } }]])
pundle.loadPlugins([['babel-pundle', { ignore: ... }]])
Must use require.resolve() and pass options as second array element.
type import
import type { PluginOptions } from 'babel-pundle'
TypeScript types may not be bundled; declare your own interface.

Loads the babel-pundle plugin, configures Babel with preset-env, ignores node_modules, and bundles an entry file.

const pundle = require('pundle'); pundle.loadPlugins([ [require.resolve('babel-pundle'), { ignored: /node_modules/, extensions: ['.js', '.jsx'], config: { presets: ['@babel/preset-env'] } }] ]).then(() => console.log('Plugin loaded')); pundle.bundle('./src/index.js').then(result => { console.log(result.code); });
Debug
Known issues
deprecatedbabel-pundle is deprecated in favor of Pundle's built-in Babel support in v2+
fix
Upgrade to Pundle v2 and use built-in Babel configuration via Pundleconfig.js
affects: <2.0.0
breakingBreaking change: v2.0.0-alpha1 changes plugin API; v1.x plugins are incompatible
fix
Do not upgrade to v2 alpha unless you can adapt to new component/preset architecture
affects: <2.0.0-alpha1
gotchaCommon mistake: using plugin name string instead of require.resolve() path
fix
Use require.resolve('babel-pundle') to get the absolute path
affects: >=1.0.0
gotchaConfiguration key is 'config', not 'babel' or 'options'
fix
Pass Babel config under the 'config' property in plugin options
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'babel-pundle'
Missing npm install or wrong require path
fix
Run 'npm install babel-pundle --save' and use require.resolve('babel-pundle')
TypeError: plugin is not a function
Incorrect plugin syntax; must be an array with path and options
fix
Wrap in array: [require.resolve('babel-pundle'), { config: {} }]
SyntaxError: Unexpected token import
Babel not configured to transpile ES modules
fix
Add '@babel/preset-env' to config.presets
Upgrade
Version history
1.1.12latest on npm
Audit
Dependencies
pundlerequiredpeer dependency - requires Pundle bundler to function
babel-corerequiredruntime dependency - core Babel transpilation engine
Agent activity
2 hits · last 30 days
node
2
Resources
babel-pundle — npm install babel-pundle · libregistry