Skip to content

Minifier: preserve @__PURE__ annotations #23609

Description

@parischap

I use tsdown with rollup-plugin-tree-shakeable which adds @PURE annotations to the transpiled code. But if I use the tsdown {minify:true} option, it removes the annotations added by the plugin. So I have to choose between annotations and minification.

I see that oxc minify preserves legal comments by default. Could an option be added to preserve annotations?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Priority

    None yet

    Start date

    None yet

    Target date

    None yet

    Effort

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions