Combining Babel Library in SWC Next.js: Integrate external Babel-dependent package while preserving SWC compilation

110 Views Asked by At

In my Next.js project, the primary compiler is SWC. However, I have a component that relies on an external library compiled with Babel. Is it feasible to configure Next.js to use Babel exclusively for this particular component while continuing to use SWC for the rest of the project?

I have not tried anything yet

0

There are 0 best solutions below