DEV Community

Discussion on: Using Typescript string enums? Consider string literals!

Collapse
 
thomvaill profile image
Thomas Vaillant

Unfortunately const enums are not supported anymore by babel :(
github.com/babel/babel/issues/8741

Thread Thread
 
kashif_shamaz profile image
Kashif Shamaz

Support for const enums is now available in @babel-preset-typescript from v7.15 using the optimizeConstEnums preset option

More info: babeljs.io/docs/en/babel-preset-ty...