@vite-pwa/workbox-swkit
v8.0.5
Published
This library contains all the packages from workbox packages for the service worker.
Downloads
1,041
Readme
🛠️ Welcome to Vite PWA Workbox SWKIT
The modern toolkit for your service worker. Vite PWA Workbox SWKIT provides a consolidated, ESM-powered collection of JavaScript libraries to construct powerful, offline-first Progressive Web Apps right inside your service worker context.
New features
@vite-pwa/workbox-swkit introduces a major architectural shift alongside new capabilities:
- Consolidated Architecture: Everything that was previously scattered across multiple independent packages is now unified into this single package using subpackage exports
- Barrel Export: It exports a main barrel file containing all APIs. Important: This is designed to be exclusively processed by
@vite-pwa/workbox-buildor@vite-pwa/workbox-cli. Their internal engines (Vite/Rolldown) handle the aggressive tree-shaking for your service worker. Consuming this barrel directly with your own application bundler is not supported - Dual Build Orchestration: When dual service workers are enabled (classic and ESM), the
@vite-pwa/workbox-buildengine compiles both builds independently and in parallel @vite-pwa/workbox-swkit/precachingadds a newparalleloption to allow precaching in parallel, instead of sequentially
📄 License
MIT License © 2026-PRESENT Anthony Fu
