UltraBundle

1.0.2 · active · verified Tue Apr 21

UltraBundle is an efficient and aggressive JavaScript/TypeScript bundler built upon Rollup, designed for projects requiring optimized output with minimal configuration. Currently at version 1.0.2, it appears to be under active development, though a specific release cadence is not explicitly stated. Its key differentiators include first-class TypeScript support, a comprehensive suite of out-of-the-box optimizations, and a straightforward single JSON file (`bundles.json`) configuration approach. Unlike more complex bundlers, it aims to simplify the bundling process by abstracting away much of the underlying Rollup configuration, providing presets for development, watching, and production builds with optimizations. This tool is intended for bundling application code, not libraries.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates the typical setup for UltraBundle, including `package.json` scripts and the required `bundles.json` configuration file, showing a basic TypeScript input and JavaScript output.

{
  "name": "my-app",
  "version": "1.0.0",
  "description": "My UltraBundled application",
  "main": "dist/output.js",
  "scripts": {
    "dev": "ultrabundle",
    "watch": "ultrabundle --watch",
    "prod": "ultrabundle --optimize"
  },
  "devDependencies": {
    "ultrabundle": "^1.0.0"
  }
}
// -- In bundles.json --
[
  {
    "input": "src/index.ts",
    "output": "dist/output.js"
  }
]
// -- In src/index.ts --
console.log("Hello from UltraBundle!");

// To run:
// 1. npm install
// 2. npm run dev (for development build)
// 3. npm run watch (for continuous watching and rebuilding)
// 4. npm run prod (for optimized production build)

view raw JSON →