Skip to content

nitro/vite strips mappings when generating sourcemaps #3826

@kevinehosford

Description

@kevinehosford

Environment

node: v22.16.0
nitro@3.0.1-alpha.1

Reproduction

https://github.com/kevinehosford/nitro-tss-sourcemaps

Describe the bug

I notice that when enabling sourcemaps, the maps produced for the nitro build have an empty mappings:"" property. I was not expecting the mappings to be empty when producing sourcemaps.

If I add experimental: { sourcemapMinify: false } to the config then the property is not empty.

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions