| Crates.io | brk_bundler |
| lib.rs | brk_bundler |
| version | 0.1.0-alpha.2 |
| created_at | 2025-06-14 23:51:05.150999+00 |
| updated_at | 2026-01-04 10:59:29.326733+00 |
| description | A thin wrapper around rolldown |
| homepage | https://bitcoinresearchkit.org |
| repository | https://github.com/bitcoinresearchkit/brk |
| max_upload_size | |
| id | 1712755 |
| size | 101,075 |
JavaScript bundling with watch mode for BRK web interfaces.
Bundle and minify JavaScript modules using Rolldown, with file watching for development. Handles module copying, source map generation, and cache-busting via hashed filenames.
// One-shot build
let dist = bundle(modules_path, websites_path, "src", false).await?;
// Watch mode for development
bundle(modules_path, websites_path, "src", true).await?;
index.html with hashed script references