-
-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Enum members are not renamed, but member access is renamed resulting in potential runtime errors.
export enum TestEnum {
Test1,
Test2,
Test3,
}Results in:
export var TestEnum;
(function (TestEnum) {
TestEnum[TestEnum["Test1"] = 0] = "Test1";
TestEnum[TestEnum["Test2"] = 1] = "Test2";
TestEnum[TestEnum["Test3"] = 2] = "Test3";
})(TestEnum || (TestEnum = {}));Member access results in:
console.log(TestEnum._internal_Test1);Which does not exist.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working