Skip to content

rollup/plugin-replace generates sourcemap like nothing is replaced #1797

@nikitaosyak

Description

@nikitaosyak

Hello

So i've noticed that plugin-replace generates source map as if nothing has been changed (though source itself does change)

I think this is due to magic-string producing same sourcemap as if for original files

This problem is around year old as I understand (https://stackoverflow.com/questions/77607028/rollup-transform-of-file-including-sourcemap-for-vite), so maybe someone can clarify if this is intended behaviour

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions