fix: resolve zod/v4/core build error and configure workbox cache limit
- Add pnpm packageExtensions to declare zod as peer dep of @hookform/resolvers (the package imports zod/v4/core but doesn't declare the peer dependency) - Raise workbox maximumFileSizeToCacheInBytes to 5MB for large app bundle Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
8ae711867d
commit
378e5e5e1d
3 changed files with 14 additions and 2 deletions
|
|
@ -58,6 +58,7 @@ export default defineConfig(({ mode }) => {
|
|||
globPatterns: ["**/*.{js,css,html,ico,png,jpg,svg,woff,woff2}"],
|
||||
globIgnores: ["**/*.map"],
|
||||
navigateFallback: "index.html",
|
||||
maximumFileSizeToCacheInBytes: 5 * 1024 * 1024,
|
||||
},
|
||||
})
|
||||
);
|
||||
|
|
|
|||
|
|
@ -37,6 +37,13 @@
|
|||
"overrides": {
|
||||
"form-data": "^4.0.4",
|
||||
"linkifyjs": "^4.3.2"
|
||||
},
|
||||
"packageExtensions": {
|
||||
"@hookform/resolvers": {
|
||||
"peerDependencies": {
|
||||
"zod": "*"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@ overrides:
|
|||
form-data: ^4.0.4
|
||||
linkifyjs: ^4.3.2
|
||||
|
||||
packageExtensionsChecksum: sha256-7EyWhva5Lcamo6pe18OzfUc27A7xbWt39+G/ofluF9k=
|
||||
|
||||
importers:
|
||||
|
||||
.:
|
||||
|
|
@ -220,7 +222,7 @@ importers:
|
|||
version: 6.22.0(@datadog/browser-rum@6.22.0)(react-router-dom@7.9.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react-router@7.9.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react@19.0.0)
|
||||
'@hookform/resolvers':
|
||||
specifier: ^5.2.2
|
||||
version: 5.2.2(react-hook-form@7.65.0(react@19.0.0))
|
||||
version: 5.2.2(react-hook-form@7.65.0(react@19.0.0))(zod@4.1.12)
|
||||
'@radix-ui/react-avatar':
|
||||
specifier: ^1.1.10
|
||||
version: 1.1.10(@types/react-dom@19.0.4(@types/react@19.0.10))(@types/react@19.0.10)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)
|
||||
|
|
@ -2230,6 +2232,7 @@ packages:
|
|||
resolution: {integrity: sha512-A/IxlMLShx3KjV/HeTcTfaMxdwy690+L/ZADoeaTltLx+CVuzkeVIPuybK3jrRfw7YZnmdKsVVHAlEPIAEUNlA==}
|
||||
peerDependencies:
|
||||
react-hook-form: ^7.55.0
|
||||
zod: '*'
|
||||
|
||||
'@humanfs/core@0.19.1':
|
||||
resolution: {integrity: sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==}
|
||||
|
|
@ -11734,10 +11737,11 @@ snapshots:
|
|||
dependencies:
|
||||
hono: 4.10.4
|
||||
|
||||
'@hookform/resolvers@5.2.2(react-hook-form@7.65.0(react@19.0.0))':
|
||||
'@hookform/resolvers@5.2.2(react-hook-form@7.65.0(react@19.0.0))(zod@4.1.12)':
|
||||
dependencies:
|
||||
'@standard-schema/utils': 0.3.0
|
||||
react-hook-form: 7.65.0(react@19.0.0)
|
||||
zod: 4.1.12
|
||||
|
||||
'@humanfs/core@0.19.1': {}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue