Skip to content

legacy: use Oxc for minify by default #21973

Description

@sapphi-red

Description

plugin-legacy has been using terser for minification regardless of the value of build.minify because esbuild didn't support keeping the syntax as-is. Now that Oxc supports that, we can respect build.minify: 'oxc' and build.minify: true for it.

Suggested solution

Remove this line as some other places

minify = minify ? 'terser' : false

We should make sure to add build.rolldownOptions.output.minify.compress.target.

Alternative

No response

Additional context

Originally suggested in #21858

Validations

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions