I have a question about swc

I am a front-end engineer currently working at a startup in Korea. I am asking for your help because I have a problem constructing the project.

We have introduced a library called “react-pdf” to implement the ability to render pdf files, and the npm site of the library forces us to turn off the swcMinify option.

I turned this off so it worked properly, but I was surprised to see that the compilation and build times have doubled compared to before. Is there a way to replace the swc compiler?

  • develop env : next14

Hi @jycho-alipeople, welcome to the Vercel Community!

This is interesting. SWC is highly optimized for Next.js builds and maybe that’s why the build time increased. I’m not sure if you can replace SWC, but what do you have in mind to replace with SWC?

Also, it might be more beneficial to start a discussion on the Next.js repository using vercel/next.js · Discussions · GitHub.

1 Like