Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use Vite official API for building sw.js (#20894)
* fix: fix service worker build * fix PwaTestIT * exclude sw.js from manifest * generate service worker at closeBundle stage * clean up service worker build config * generate service worker at different stages depending on mode * do not use lib mode to allow for minification in es format * clean up plugin code * add inlineDynamicImports: true option * revert some changes to minimize diff * add exports option for backward compatibility --------- Co-authored-by: Teppo Kurki <[email protected]>
- Loading branch information