Skip to content

@ducanh2912/next-pwa@9.0.0

Compare
Choose a tag to compare
@DuCanhGH DuCanhGH released this 20 Jun 06:14
· 116 commits to master since this release
41d8df7

Major Changes

  • #38 7bd3ba7 Thanks @DuCanhGH! - BREAKING CHANGE(next-pwa, next-sw): use Next's swc bindings instead of @swc/core

    What: From now on we will try to resolve next/dist/build/swc in swc-loader (needed to use cacheOnFrontEndNav, custom workers and offline fallbacks). If it can't be resolved, we will fallback to @swc/core (needed to be installed manually).

    Why: This is to save disk space (we don't need two @swc/core) and avoid exceeding Vercel's serverless size limit.

    Why use Next's next/dist/build/swc: it seems that @next/mdx is also doing the same for their mdx Rust compiler.

    How to upgrade: Usually you don't need to do anything (if you are on Next 12.0.0 or later). But if you see this line when you build your Next app: Using @swc/core to compile next-pwa's features. Please install it if you haven't. or Failed to resolve swc. Please install @swc/core if you haven't., please do as instructed.

  • #38 7bd3ba7 Thanks @DuCanhGH! - BREAKING CHANGE(requirements): bump minimum Next.js version to v11

    What: next-pwa's minimum supported Next.js version is now 11.0.0.

    Why: I noticed that workbox-webpack-plugin no longer works with Next.js 9 and 10, so this bumps the minimum supported Next.js version to v11.

    How to upgrade: Bump next to at least 11.0.0.