Releases: DuCanhGH/next-pwa
@ducanh2912/[email protected]
@ducanh2912/[email protected]
@ducanh2912/[email protected]
@ducanh2912/[email protected]
Patch Changes
-
4d13948
Thanks @DuCanhGH! - fix(next-pwa): fixed swc-minify crashing build when all swc sources can't be resolved- The new behaviour should be to use
terser-webpack-plugin
'sterserMinify
when they can't be found. - With this patch,
@swc/core
should now be preferred overnext/dist/build/swc
, which makes more sense than the old behaviour. You can now override the selectedswc
.
- The new behaviour should be to use
@ducanh2912/[email protected]
@ducanh2912/[email protected]
@ducanh2912/[email protected]
@ducanh2912/[email protected]
Patch Changes
-
a47f236
Thanks @DuCanhGH! - fix(swc-loader): only log when both swc sources can't be resolved- Previously, swc-loader used to always log "Using @swc/core to compile next-pwa's features. Please install it if you haven't." if
next/dist/build/swc
can't be resolved. This can get annoying, so this changes it so that it only logs when both sources can't be resolved.
- Previously, swc-loader used to always log "Using @swc/core to compile next-pwa's features. Please install it if you haven't." if
-
8cb59af
Thanks @DuCanhGH! - chore(next-pwa): removedapp/_offline/page.js
auto-detect for offline fallbacks- A part of
v9
's breaking changes.
- A part of
@ducanh2912/[email protected]
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
inswc-loader
(needed to usecacheOnFrontEndNav
, 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 theirmdx
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.
orFailed 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 v11What:
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.