[AskJS] What is your preferred tool for transforming and minifying JavaScript?

This page summarizes the projects mentioned and recommended in the original post on /r/javascript

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • swc

    Rust-based platform for the Web

  • 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.

  • esbuild

    An extremely fast bundler for the web

  • 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.

  • 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.

    SurveyJS logo
  • Babel (Formerly 6to5)

    🐠 Babel is a compiler for writing next generation JavaScript.

  • 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.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts