forked from trent_larson/crowd-funder-for-time-pwa
fix: resolve PWA build issues with SQL.js worker files
- Update worker format to ESM in Vite config to fix IIFE format error - Increase PWA precache file size limit to 10MB to accommodate SQL.js files - Fix type declarations for worker configuration - Add proper type annotations for Vite config - Add type declarations for absurd-sql module
This commit is contained in:
@@ -19,7 +19,8 @@ export default defineConfig(async () => {
|
||||
cleanupOutdatedCaches: true,
|
||||
skipWaiting: true,
|
||||
clientsClaim: true,
|
||||
sourcemap: true
|
||||
sourcemap: true,
|
||||
maximumFileSizeToCacheInBytes: 10 * 1024 * 1024 // 10MB
|
||||
}
|
||||
})
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user