Skip to content

Nullish Colaescing Operator ?? causes an error #68

@xavi-mat

Description

@xavi-mat

It seems that Minify can't manage the nullish coalescing operator.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing_operator

I'm trying to minimize this:

const a = document.nonExistent ?? "Not found";

And get:

Minify failed: Unexpected token: operator (?)

Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions