lib-bundler

raw JSON →
0.0.2 verified Sat May 09 auth: no javascript abandoned

lib-bundler is a code bundler for ES6 JavaScript libraries. Version 0.0.2 is very early stage with minimal documentation and no active maintenance. It bundles CommonJS and UMD outputs (common, full, min, min.gz, map). Compared to Rollup or esbuild, it lacks modern features, has no updates since initial release, and is essentially abandoned. Use only for understanding early bundler patterns.

error Cannot find module 'lib-bundler'
cause Package may not be installed; or installed globally instead of locally.
fix
Run 'npm install lib-bundler --save-dev' in your project directory.
error TypeError: Bundler is not a constructor
cause Using ES6 import syntax (import Bundler from 'lib-bundler') which is not supported by this CommonJS-only package.
fix
Use 'const Bundler = require("lib-bundler");' instead.
deprecated Package is no longer maintained; last update in 2016. Use modern bundlers like Rollup or esbuild.
fix Migrate to a maintained bundler (e.g., Rollup: npm install rollup --save-dev).
gotcha Options object requires all fields (project, moduleName, author, version, entry, output) — no defaults.
fix Always provide complete configuration object as shown in the documentation.
gotcha The bundler writes files synchronously? Actual behavior is unknown; no tests or examples show error handling.
fix Use try-catch or promise-based API if available; consider not using this abandoned package.
npm install lib-bundler
yarn add lib-bundler
pnpm add lib-bundler

Initialize bundler with configuration and run build, producing multiple output formats in ./dist.

npm install lib-bundler --save-dev

var Bundler = require('lib-bundler');

var bundler = new Bundler({
    project: "test",
    moduleName: "test",
    author: "author",
    version: "1.0.0",
    entry: "./src/index.js",
    output: "./dist"
});

bundler.bundled()
.then(function() {
    console.log('Build complete');
})
.catch(function(err) {
    console.error('Build failed:', err);
});