DEV Community

Discussion on: Migrating a 150K LOC codebase to Vite and ESBuild: How? (Part 2/3)

Collapse
kubajastrz profile image
Jakub Jastrzębski

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.

Collapse
noriste profile image
Stefano Magni Author

You're right, I'll link to your comment directly in the article, thanks for the suggestion!!