Skip to content

[FEATURE]: Exclude .map source maps from CLI binary build #25504

Description

@PanAchy

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

The CLI build (bun run build --single) embeds all web UI dist files via a catch-all Bun.Glob("**/*") in build.ts. This includes .map source map files that are only needed for Sentry uploads in the hosted deployment — vite.config.ts already cleans them up server-side with filesToDeleteAfterUpload.

These source maps are dead weight in a compiled Bun binary. They're never loaded at runtime. Filtering .map from the embedding glob would reduce the linux-x64 binary from ~167MB to ~144MB (-14%).

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionUsed for feature requests, proposals, ideas, etc. Open discussion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions