Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
Second, it's better for some situations where other tools don't have the resources necessary to compile as effectively. As I mentioned in the original comment, SWC and ESBuild don't support inlining const enum values at all, and Babel has only limited support when the const enum is declared in the same file it is used. It's not a dealbreaker, but the fact is the other tools have to keep up with the TS language specification, while tsc does it already.
Second, it's better for some situations where other tools don't have the resources necessary to compile as effectively. As I mentioned in the original comment, SWC and ESBuild don't support inlining const enum values at all, and Babel has only limited support when the const enum is declared in the same file it is used. It's not a dealbreaker, but the fact is the other tools have to keep up with the TS language specification, while tsc does it already.
Second, it's better for some situations where other tools don't have the resources necessary to compile as effectively. As I mentioned in the original comment, SWC and ESBuild don't support inlining const enum values at all, and Babel has only limited support when the const enum is declared in the same file it is used. It's not a dealbreaker, but the fact is the other tools have to keep up with the TS language specification, while tsc does it already.