Skip to content

Split option for client side sourcemaps #10068

Open
@gtm-nayan

Description

@gtm-nayan

Describe the problem

While working on #10041, I realized that setting sourcemaps true in the vite config will set it to true for both client and server builds, which might not always be what you want. The client sourcemaps are left in the assets folder so they're accessible as any other asset without any restriction.

Describe the proposed solution

Something like config.kit.overrideClientSourcemaps: typeof vite_config.build.sourcemap and then set the value to overrideClientSourcemaps in the client build if present.

Alternatives considered

User deletes sourcemaps in the client folder after build
or #9544

Importance

nice to have

Additional Information

No response

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