Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding tslib dependency to remove redundant code. #1942

Merged
merged 3 commits into from
Jun 6, 2017
Merged

Adding tslib dependency to remove redundant code. #1942

merged 3 commits into from
Jun 6, 2017

Conversation

dzearing
Copy link
Member

@dzearing dzearing commented Jun 6, 2017

Now instead of seeing this in every module:

var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};

You get this:

var tslib_1 = require("tslib");
...
var Breadcrumb = (function (_super) {
    tslib_1.__extends(Breadcrumb, _super);

@dzearing
Copy link
Member Author

dzearing commented Jun 6, 2017

Also updating linting to break the build because I think the recent removal of the --production flag for ci build broke this.

@dzearing dzearing merged commit 1820479 into microsoft:master Jun 6, 2017
@dzearing dzearing deleted the tslib-fix branch June 6, 2017 05:33
@microsoft microsoft locked as resolved and limited conversation to collaborators Aug 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants