Enums, not supported by ESBuild, replacing them with string unions
I'm curious if you mean the regular enums, or const enums. The latter are not supported (yet) but the former should be working without any issues. Just be careful to store them in .ts files rather than .d.ts.
Passionate, positive-minded, Sr Front-end Eng @ Preply (Design System) / Advisor @ Plannix / ex platform team / ex team leader / Speaker / Instructor / Writer / Remote worker
Location
Lecco, Italy
Education
Bachelor's degree, Communication design - High School Diploma, Informatic Technologies
Work
Senior Front-end Engineer/Tech lead at Preply (Design System)
I'm curious if you mean the regular enums, or
const enums
. The latter are not supported (yet) but the former should be working without any issues. Just be careful to store them in.ts
files rather than.d.ts
.You're right, I'll link to your comment directly in the article, thanks for the suggestion!!