Zero Bundler (libpacker)

0.0.16 · abandoned · verified Tue Apr 21

Zero Bundler, also known as `libpacker` on GitHub, is a command-line interface (CLI) tool designed for bundling npm packages with minimal configuration. It aims to simplify the build process for libraries by leveraging convention over explicit configuration, similar to other 'zero-config' bundlers like Microbundle or Parcel (v1). The tool processes entry files specified in `package.json` and generates output in both CommonJS (`main`) and ES Module (`modules`) formats. The latest available version is 0.0.16, published approximately four years ago. Due to its last update dating back to 2021 and its very low version number, the project appears to be unmaintained or abandoned, which impacts its compatibility with modern JavaScript and Node.js ecosystems, as well as the adoption of newer bundling optimizations.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates how to configure `package.json` and a simple source file to build a library using the `zero` command.

{
  "name": "my-awesome-lib",
  "version": "1.0.0",
  "description": "A simple library bundled with Zero Bundler.",
  "source": "./src/index.js",
  "main": "dist/index.js",
  "module": "dist/index.mjs",
  "scripts": {
    "build": "zero",
    "prepublishOnly": "yarn build"
  },
  "devDependencies": {
    "zero-bundler": "^0.0.16"
  }
}
// In src/index.js
export const greet = (name) => `Hello, ${name}!`;
export const add = (a, b) => a + b;

// To run:
// 1. yarn add zero-bundler --dev
// 2. yarn build
// This will generate dist/index.js (CJS) and dist/index.mjs (ESM)

view raw JSON →