babel-plugin-const-enum
babel-plugin-const-enum copied to clipboard
Support computed string enum members
Should allow string operations such as + (concatenation) but no interpolation. Concatenation is the only operator I am aware of.
const enum MyEnum = {
A = 'a' + 'a',
B = `b` + `b`,
C = "b" + "b",
}