Skip to content

Nullish Colaescing Operator ?? causes an error #68

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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