{"id":27176,"library":"node-bundle","title":"node-bundle","description":"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.","status":"active","version":"1.0.999","language":"javascript","source_language":"en","source_url":null,"tags":["javascript"],"install":[{"cmd":"npm install node-bundle","lang":"bash","label":"npm"},{"cmd":"yarn add node-bundle","lang":"bash","label":"yarn"},{"cmd":"pnpm add node-bundle","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package uses CommonJS, not ESM.","wrong":"import bundle from 'node-bundle';","symbol":"node-bundle","correct":"const bundle = require('node-bundle');"},{"note":"Named export; only works with require.","wrong":"import { Bundle } from 'node-bundle';","symbol":"Bundle","correct":"const { Bundle } = require('node-bundle');"},{"note":"Default export is a function via module.exports.","wrong":"import bundle from 'node-bundle'; bundle();","symbol":"bundle","correct":"const bundle = require('node-bundle'); bundle.bundle(...);"}],"quickstart":{"code":"const bundle = require('node-bundle');\nbundle({\n  entry: './src/index.js',\n  output: './dist/bundle.js'\n}).then(result => {\n  console.log('Bundled:', result.size);\n}).catch(err => console.error(err));","lang":"javascript","description":"Shows basic usage of the bundle function with entry and output paths, and handling of promise result."},"warnings":[{"fix":"Ensure all source files use require/module.exports; do not use import/export.","message":"Only supports CommonJS modules, not ESM.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use webpack or esbuild for code splitting.","message":"Output is always a single file; does not support code splitting.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Compile TypeScript to JavaScript first, then bundle.","message":"No TypeScript support; treats .ts files as .js.","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 node-bundle` and use `const bundle = require('node-bundle');`","cause":"Package not installed or incorrect import syntax.","error":"Error: Cannot find module 'node-bundle'"},{"fix":"Use correct CommonJS require: `const bundle = require('node-bundle');`","cause":"Incorrect import (e.g., used import instead of require, or got wrong export).","error":"TypeError: bundle is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}