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.
npm install ultrabundleVerified import paths — ran on the pinned version, not inferred.
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.
Always check the official documentation or release notes for schema updates when upgrading to a new major version. Consider pinning to a specific major version to avoid unexpected build failures.
If encountering unexpected runtime errors or missing functionality, examine the bundled output. Look for `sideEffects: false` in `package.json` of affected libraries or use `/* #__PURE__ */` annotations for functions with side effects. Consult Rollup documentation for advanced `treeshake` options if UltraBundle exposes them or if a custom Rollup config can be injected.
Ensure `bundles.json` exists in the same directory as `package.json` and follows the specified JSON array format. Verify all `input` and `output` paths are correct and accessible.
Ensure your project's `tsconfig.json` is correctly set up for your project, especially `target` and `module` options. Update TypeScript to a compatible version with UltraBundle and Rollup's underlying TS transformer. Check UltraBundle's GitHub issues for reported TS compatibility problems.
Create a `bundles.json` file in your project's root directory, ensuring it contains a valid JSON array of bundle configurations.
Double-check import paths in your source code. Ensure all dependencies are correctly installed (`npm install`). Verify `tsconfig.json`'s `compilerOptions.paths` and `compilerOptions.baseUrl` are set up correctly if using path aliases.
Review your `bundles.json` configuration for any typos or invalid properties. Try a simpler configuration first to isolate the problem. Check for recent changes in UltraBundle or Rollup that might affect your setup. Temporarily disable `--optimize` to see if the issue is related to aggressive optimizations.
No dependency data recorded yet.