Registry / devops / node-bundle

node-bundle

JSON →
library1.0.999jsnpmunverified

A fast bundler for CommonJS applications, version 1.0.999. No release cadence noted. Differentiators vs alternatives like webpack or esbuild: minimal configuration, focused solely on CommonJS (CJS) module bundles for Node.js environments. Not actively maintained based on README absence.

npm install node-bundle
INSTALL
IMPORT
SIG · NODE-BUNDLE
N
node-bundle
devopsjavascriptv1.0.999
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

node-bundle
const bundle = require('node-bundle');
import bundle from 'node-bundle';
Package uses CommonJS, not ESM.
Bundle
const { Bundle } = require('node-bundle');
import { Bundle } from 'node-bundle';
Named export; only works with require.
bundle
const bundle = require('node-bundle'); bundle.bundle(...);
import bundle from 'node-bundle'; bundle();
Default export is a function via module.exports.

Shows basic usage of the bundle function with entry and output paths, and handling of promise result.

const bundle = require('node-bundle'); bundle({ entry: './src/index.js', output: './dist/bundle.js' }).then(result => { console.log('Bundled:', result.size); }).catch(err => console.error(err));
node-bundle --version
Debug
Known issues
gotchaOnly supports CommonJS modules, not ESM.
fix
Ensure all source files use require/module.exports; do not use import/export.
affects: >=1.0.0
gotchaOutput is always a single file; does not support code splitting.
fix
Use webpack or esbuild for code splitting.
affects: >=1.0.0
gotchaNo TypeScript support; treats .ts files as .js.
fix
Compile TypeScript to JavaScript first, then bundle.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'node-bundle'
Package not installed or incorrect import syntax.
fix
Run `npm install node-bundle` and use `const bundle = require('node-bundle');`
TypeError: bundle is not a function
Incorrect import (e.g., used import instead of require, or got wrong export).
fix
Use correct CommonJS require: `const bundle = require('node-bundle');`
Upgrade
Version history
1.0.999latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
node-bundle — npm install node-bundle · libregistry