pugjs / babel-plugin-transform-react-pug

A plugin for transpiling pug templates to jsx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SWC plugin

Inshou opened this issue · comments

Next.js 11.1 (August 11th 2021 ) feature:

Rust-based Tooling: SWC integration to replace JS tooling (Babel and Terser).

What about new plugin?

commented

I’m here for it. Sounds necessary for me

Yeah, I believe we should invest into it!

I've been following SWC since the beginning and I'm glad that they finally got plugins system delivered and documented at least something. However, even in the doc they warn us:

Therefore, we are concidering two approaches for the next SWC major version:

  1. Creating a plugin system in Rust (#2337)
  2. Solve the bottleneck to keep a JS plugin system (#2175)

So I'm not sure what direction to take. If you are leaning towards any of those approaches, I'd be happy to know why and happy to discuss next steps.

commented

This is pressing for me because: I've got a few nextjs projects in prod that would be using SWC already if not for pug.

However, I'm hesitant about any solution because: It sounds like JS support is still up-in-the-air, and babel plugins may even be usable with SWC: swc-project/swc#2175 (comment)