mirror of
https://github.com/Psychotoxical/psysonic.git
synced 2026-07-21 14:55:43 +00:00
fix(build): static import ratings cache invalidate; raise chunk warning limit (#723)
Replace ineffective dynamic import of subsonicRatings from setRating (mix paths already statically load it). Set Vite chunkSizeWarningLimit to 1000 kB for desktop bundles.
This commit is contained in:
@@ -24,6 +24,8 @@ export default defineConfig({
|
||||
},
|
||||
envPrefix: ["VITE_", "TAURI_ENV_*"],
|
||||
build: {
|
||||
// Default 500 kB warns on every build; desktop bundles are often larger without being a problem.
|
||||
chunkSizeWarningLimit: 1000,
|
||||
target: process.env.TAURI_ENV_PLATFORM === "windows" ? "chrome109" : "safari16",
|
||||
minify: !process.env.TAURI_ENV_DEBUG ? "esbuild" : false,
|
||||
sourcemap: !!process.env.TAURI_ENV_DEBUG,
|
||||
|
||||
Reference in New Issue
Block a user