@swift-rust/bundle-analyzer
v0.2.0
Published
Visualize the size of swift-rust bundles.
Readme
@swift-rust/bundle-analyzer
Identifies what's actually inside your production bundle. Wraps the bundler output and emits a treemap you can open in a browser.
Usage
import { withBundleAnalyzer } from "@swift-rust/bundle-analyzer";
export default withBundleAnalyzer({
// swift-rust config
}, {
enabled: process.env.ANALYZE === "true",
});Then run:
ANALYZE=true bun swift-rust build
open .swift-rust/analyze/client.html