next-pwa icon indicating copy to clipboard operation
next-pwa copied to clipboard

SWC Support?

Open iamthesiz opened this issue 3 years ago • 7 comments

Summary

Are there any plans on upgrading to SWC?

iamthesiz avatar Dec 29 '21 14:12 iamthesiz

I imagine this would be considered once the feature is out of beta in NextJS, but also watching this as well!

uncvrd avatar Jan 06 '22 21:01 uncvrd

What do you mean out of beta? We're in Next 12 now and SWC support was introduced in Next 11.

iamthesiz avatar Jan 07 '22 22:01 iamthesiz

Because according to the docs, it's considered an Experimental feature: https://nextjs.org/docs/advanced-features/compiler#experimental-features

uncvrd avatar Jan 10 '22 09:01 uncvrd

Because according to the docs, it's considered an Experimental feature: https://nextjs.org/docs/advanced-features/compiler#experimental-features

Version Notes
v13.0.0 SWC Minifier enabled by default.
v12.3.0 SWC Minifier stable.
v12.2.0 SWC Plugins experimental support added.

We are still not using next-pwa in most of our apps because it doesn't support SWC and throws hundreds of yarn warnings about workbox, webpack, etc etc.

AlbinoGeek avatar Nov 24 '22 18:11 AlbinoGeek

I haven't experienced any blockers with next-pwa and SWC. The only packages that still request babel are cypress and the usual suspect: storybook.

In case you're interested in my setup: https://github.com/pixelass/pwa-template

pixelass avatar Dec 01 '22 08:12 pixelass

I haven't experienced any blockers with next-pwa and SWC. The only packages that still request babel are cypress and the usual suspect: storybook.

In case you're interested in my setup: https://github.com/pixelass/pwa-template

Cypress 😢 Have an alternative? We'd gladly switch 😀

AlbinoGeek avatar Dec 15 '22 18:12 AlbinoGeek

Cypress 😢 Have an alternative? We'd gladly switch 😀

Cypress has their own process so it shouldn't impact you in any way. Babel is not even listed in the dependencies of the example repo I posted. It will be installed by cypress and storybook if you are using either but there is zero impact on the rest of the project (AFAIK).

What I wanted to say is: "next-pwa does not have any noticable issues with SWC".

I'm not sure if this has changed since this issue was opened, but from my experience this is currently a non-issue.

pixelass avatar Dec 16 '22 10:12 pixelass