pugjs / babel-plugin-transform-react-pug

A plugin for transpiling pug templates to jsx
MIT License
807 stars 46 forks source link

SWC plugin #150

Open Inshou opened 2 years ago

Inshou commented 2 years ago

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

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

What about new plugin?

skotchpine commented 2 years ago

I’m here for it. Sounds necessary for me

ezhlobo commented 2 years ago

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.

skotchpine commented 2 years ago

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: https://github.com/swc-project/swc/issues/2175#issuecomment-910200062