Skip to content

babel-plugin-minify-dead-code-elimination SequenceExpression use case #373

Description

@jtenner

SequenceExpression in ExpressionStatement containing UnaryExpression(void 0) does not remove dead code.

I realize this is a small use case, but if an ExpressionStatement contains a SequenceExpression with void 0 it can be removed with no worry of side-effects.

  a, b, c, d, void 0;

should be:

  a, b, c, d;

Thanks for reading!

-Josh

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    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