You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A typescript transpiler that transform exported const enum into object literal.
5
+
A typescript transformer that convert exported const enum into object literal.
6
6
7
7
This is just like the one from [@babel/preset-typescript with optimizeConstEnums: true](https://babeljs.io/docs/en/babel-preset-typescript#optimizeconstenums) but it works for typescript compiler.
8
8
@@ -55,7 +55,7 @@ export var MyEnum;
55
55
})(MyEnum || (MyEnum = {}));
56
56
```
57
57
58
-
which is ugly and waste a lot of bytes. Not only can't you take advantage of enum inlining, but it also wastes a lot of bytes. That's why this transform existed.
58
+
Not only can't you take advantage of enum inlining, but it also wastes a lot of bytes. That's the reason why this transform is made.
59
59
60
60
# Installation
61
61
@@ -141,7 +141,6 @@ export default {
141
141
# Caveats
142
142
143
143
Currently, only immediate export const enum works. For example:
0 commit comments