swc

swc is a super-fast compiler written in rust; producing widely-supported javascript from modern standards and typescript. (by swc-project)

Swc Alternatives

Similar projects and alternatives to swc

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better swc alternative or higher similarity.

Suggest an alternative to swc

Reviews and mentions

Posts with mentions or reviews of swc. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-10-26.
  • Swc
    news.ycombinator.com | 2021-10-26
  • Next.js 12
    news.ycombinator.com | 2021-10-26
    > I believe esbuild was started first

    That seems incorrect.

    - "put on github" - evanw committed on Jan 15, 2020 - https://github.com/evanw/esbuild/commit/23c40b1b6a76a8626f1d...

    - "initial commit" - kdy1 committed on Dec 22, 2017 - https://github.com/swc-project/swc/commit/0f9532dd5d379292cc...

    news.ycombinator.com | 2021-10-26
    The big innovation here seems to be https://swc.rs/

    This is going to be great for a ton of projects. Having a 20x Typescript compiler boost when running large test suites would be great.

    Looking forward to see where else this gets adopted and it's stability.

  • Yarn 3.1 🎃👻 Corepack, ESM, pnpm, Optional Packages ...
    dev.to | 2021-10-25
    Esbuild and swc are two native packages that gained a lot of attention lately thanks to their impressive performances over their competitors. They recently revamped how their packages are built to avoid complex postinstall scripts, but did so in a way that was less efficient than before for Yarn projects.
  • esbuild – An extremely fast JavaScript bundler
    news.ycombinator.com | 2021-10-13
  • Rome will be written in Rust
    news.ycombinator.com | 2021-09-21
    esbuild is the current darling leading the pack, but there are also various other projects in the space (swc[0] is written in Rust, fjb[1] is written in C, bun[2] is written in zig, leveraging JavascriptCore's engine).

    The most significant performance-oriented effort in this space still leveraging JS that I know of is kataw[3], and while that's quite fast compared to babel, it's still within an order of magnitude from babel. Kataw itself is a CST-based implementation that was created to outperform seafox (a AST-based parser by the same developer).

    Babel gained popularity due to the crazy amount of churn in grammar over the past few years, but more and more I think the dust is settling, and flexibility is no longer the name of the game, making an AST-based implementation less appealing. The Rome team must be feeling the heat if the data structure design choices are being informed by performance. I highly doubt someone will be able to compete in performance using a JS implementation in today's landscape.

    [0] https://github.com/swc-project/swc

    [1] https://github.com/sebbekarlsson/fjb

    [2] https://bun.sh/

    [3] https://github.com/kataw/kataw

    news.ycombinator.com | 2021-09-21
    That doesn't support type checking, see https://github.com/swc-project/swc/issues/571

    You'd still need to run `tsc` to check types even if you used swc

    news.ycombinator.com | 2021-09-21
    There already is one, and it’s used by Deno!

    https://swc.rs/

    news.ycombinator.com | 2021-09-21
  • [AskJS] What is your preferred tool for transforming and minifying 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.
  • The Next.js team works towards replacing Babel with SWC. Also, experimental ES Modules support.
    From what I can see SWC doesn't have type checking yet: https://github.com/swc-project/swc/issues/571
  • Type checking on compile is a cool perk with webpack
  • GitHub - Aslemammad/vitext: The Next.js like React framework for better User & Developer experience!
    reddit.com/r/nextjs | 2021-08-07
    it seems new cool things coming. does/will it support to deploy cloudflare workers? vitedge, vitesse, vite-plugin-ssr and vitext names are so confusing. :) next. js team trys to add https://swc.rs/ for fast compiles. good luck to all
  • Rome tools being rewritten in Rust (and hiring).
    reddit.com/r/rust | 2021-08-05
    Why not contribute to swc instead?
  • Using styled-components with SWC compiler?
    reddit.com/r/reactjs | 2021-08-01
    I've recently tried SWC for building my project instead of ts-loader and was blown away by its performance (I got 8x-10x speedup on a Windows machine).

Stats

Basic swc repo stats
41
15,767
9.7
6 days ago

swc-project/swc is an open source project licensed under GNU General Public License v3.0 or later which is an OSI approved license.

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
Find remote jobs at our new job board 99remotejobs.com. There are 38 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.