Skip to content

"__extends" function repeats multiple times inside compiled code. #101

Closed
@logashoff

Description

@logashoff

The following piece of code is being included into each compiled module whenever a class is extended inside that module:

var __extends = (this && this.__extends) || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};

So if you have 10 modules that have a class in each one of them that extends some other class, you'll have 10 exactly the same __extends functions in your compiled code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions