Skip to content

Production build breaks browsers which doesn't support PropertyShorthend #1211

Description

@pudek357

Hi everyone 👋

This PR introduced problem with production build, when we use in code PropertyShorthend.

I was trying to investigate this problem and I figured out that the problem is with this line.
If ecma is set to >= 6 then UglifyJS produces for example code:

const someVar = 'abc';
const testObj = {
  someVar,
};

that production build:

const testObj = {  someVar };

but should instead:

const testObj = {  someVar: someVar  };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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