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

Enums are not transpliling correctly #524

Closed
agubler opened this issue Mar 16, 2018 · 0 comments
Closed

Enums are not transpliling correctly #524

agubler opened this issue Mar 16, 2018 · 0 comments
Milestone

Comments

@agubler
Copy link
Member

agubler commented Mar 16, 2018

Bug

The enums in widgets that use the keyword const in their declaration are not transpiled correctly.

Removing the const keyword ensures that they are correctly transpiled.

Example Enum declarations:

// This does not transpile correctly
export const enum BrokenEnum { 
    a = 0
}

// transpiles correctly
export enum CorrectEnum { 
    a = 0
}

Transpiled output (missing BrokenEnum):

define(["require", "exports"], function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var CorrectEnum;
    (function (CorrectEnum) {
        CorrectEnum[CorrectEnum["a"] = 0] = "a";
    })(CorrectEnum = exports.CorrectEnum || (exports.CorrectEnum = {}));
});
@dylans dylans added this to the rc.2 milestone Mar 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants