Skip to content

Aliased function exports are broken #648

Description

@Rich-Harris

In a situation like this...

var CubeGeometry;
CubeGeometry = BoxGeometry;

function BoxGeometry ( options ) {
    /* code goes here */
};

export { CubeGeometry, BoxGeometry };

...the BoxGeometry function becomes function exports.BoxGeometry which is obviously broken. Interestingly if you initialise CubeGeometry immediately it works fine.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions