Bili is a JavaScript library bundler designed for zero-configuration setup, leveraging Rollup under the hood. It automatically handles transformations for JavaScript using Buble, Babel, or TypeScript, and includes built-in support for various CSS preprocessors like Sass, Stylus, Less, and CSS modules. The current stable version is 5.0.5, which was last published in June 2020. This project differentiates itself by aiming for a streamlined, opinionated bundling experience that minimizes boilerplate configuration, providing a user-friendly interface for building libraries with multiple output formats (CJS, ESM, UMD). Despite its initial goal of simplicity and comprehensive features, its development has ceased, leaving it without recent updates or maintenance.
npm install biliVerified import paths — ran on the pinned version, not inferred.
Demonstrates both CLI conceptual usage and a runnable programmatic build example for a TypeScript library using `bili.config.ts`.
Review the changelog for specific Rollup and plugin updates in v5.0.0 and adjust your `bili.config.js`/`.ts` or command-line arguments accordingly. Refer to the respective Rollup plugin documentation for new options or deprecated APIs.
Consider migrating to actively maintained bundlers like Rollup directly, esbuild, or Vite, which offer similar capabilities and are regularly updated.
Consult the `rollup-plugin-typescript2` documentation for specific configurations related to warnings or compatibility issues. Ensure your `tsconfig.json` is correctly configured for your project's needs.
Ensure `tsconfig.json` is correctly set up. You might be able to configure `rollup-plugin-typescript2` specifically in your `bili.config.js` to adjust its behavior or ignore certain warnings, if such options are exposed by Bili.
This was a bug fixed in Bili v5.0.3. Ensure you are using Bili version `5.0.3` or newer. If the issue persists, manually configure your minifier or Rollup banner options to prevent double-injection, if Bili exposes such granular control.
This was a bug fixed in Bili v5.0.5. Update Bili to version `5.0.5` or later. If custom output filenames are desired, carefully configure the `output.fileName` option in `bili.config.js` to specify the desired naming convention, e.g., `[name].[format].js`.