Skip to content

Unexpectedly large macOS bundle size (~72MB) for hello-world app #373

@warpdesign

Description

@warpdesign

I built a simple app today using the hello-world template.

Since electrobun is designed to produce very small apps, I was expecting the final bundle to be only a few MB. I was therefore a bit surprised to see that the uncompressed macOS app bundle is around 72.6 MB.

I understand the trade-offs involved (performance, built-in runtime, update model, etc.), but I had expected a significantly smaller output size.

Could you clarify why the Bun runtime contributes so much (~60Mb) to the final size? Is there currently a way (or plans) to strip unused functionality to reduce the footprint?

Given that the WebView is already provided by the OS, I was expecting something much lighter. For comparison, when building with Zig, only the actually used parts of the standard library are included in the final binary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions