perf: lazy-load zxcvbn password library to reduce initial bundle size

- Dynamic import zxcvbn (820KB) in PasswordStrengthMeter so it only
  loads when user starts typing a password
- Raise chunkSizeWarningLimit to 850KB for the lazy-loaded chunk

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Frederic Cabassut
2026-03-09 10:42:27 +01:00
co-authored by Claude Opus 4.6
parent e09c2a9c02
commit 6957bdc64b
2 changed files with 15 additions and 2 deletions
+3
View File
@@ -4,6 +4,9 @@ import tailwindcss from '@tailwindcss/vite';
import { defineConfig } from 'vite';
export default defineConfig({
build: {
chunkSizeWarningLimit: 850
},
plugins: [
tailwindcss(),
sveltekit(),