FuseBox Bundler

1.3.135 · abandoned · verified Wed Apr 22

FuseBox is a JavaScript bundler and module loader known for its fast bundling times and zero-configuration approach for common setups. It aims to combine features found in tools like webpack and SystemJS. Key differentiators include first-class TypeScript support, built-in Rollup integration, and a developer-friendly experience with a fast dev server and Hot Module Replacement (HMR). The latest major version of the core bundler, `fuse-box`, is v4.0.0, released in April 2020. However, development appears to have ceased, with no significant updates to the core library since then, and the `fusebox-cli` package itself has not been updated since February 2018. Users should be aware that the project is effectively abandoned, lacking active maintenance or a release cadence, making it a potentially risky choice for new or ongoing projects requiring support and modern compatibility.

Common errors

Warnings

Install

Imports

Quickstart

This example demonstrates how to initialize FuseBox with basic configuration for a TypeScript project and bundle a single entry file into an output file.

import { FuseBox } from 'fuse-box';

// Basic configuration for bundling a TypeScript project
const fuse = FuseBox.init({
    homeDir: "src/",
    sourceMap: {
         bundleReference: "./sourcemaps.js.map",
         outFile: "sourcemaps.js.map"
    },
    outFile: "./out.js",
    cache: true,
    log: true
});

// Bundle the main entry point 'index.ts'
fuse.bundle(">index.ts");

// To run the development server with HMR (Hot Module Replacement)
// fuse.dev({
//     port: 4444,
//     hmr: true,
// });
// fuse.bundle(">index.ts");

view raw JSON →