From 8a013f6fa95291445924e09a87a646a5a20b3ef0 Mon Sep 17 00:00:00 2001 From: Maurice Date: Sat, 27 Jun 2026 21:09:05 +0200 Subject: [PATCH] fix(build): bump the client to vite 8.1.0 so the amd64 image builds The 3.1.3 docker build failed on linux/amd64 while bundling the client (arm64 happened to pass): vite 8.0.16 pins rolldown 1.0.3, but tsdown pulls rolldown 1.1.2, and on amd64 npm hoists the 1.1.2 native binding so vite's 1.0.3 rolldown loaded a mismatched one ("builtin:vite-wasm-fallback does not match any variant of BindingBuiltinPluginName"). Moving the client to vite 8.1.0, which expects rolldown 1.1.2, lines the bundler up with the hoisted binding. Verified by building the client in a clean linux/amd64 node:22 container. --- client/package.json | 2 +- package-lock.json | 93 ++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 93 insertions(+), 2 deletions(-) diff --git a/client/package.json b/client/package.json index a26a6df8..90405879 100644 --- a/client/package.json +++ b/client/package.json @@ -82,7 +82,7 @@ "tailwindcss": "^3.4.1", "typescript": "^6.0.2", "typescript-eslint": "^8.58.2", - "vite": "^8.0.16", + "vite": "8.1.0", "vite-plugin-pwa": "^1.3.0", "vitest": "^4.1.9" } diff --git a/package-lock.json b/package-lock.json index 13bc7524..44ef6442 100644 --- a/package-lock.json +++ b/package-lock.json @@ -86,11 +86,102 @@ "tailwindcss": "^3.4.1", "typescript": "^6.0.2", "typescript-eslint": "^8.58.2", - "vite": "^8.0.16", + "vite": "8.1.0", "vite-plugin-pwa": "^1.3.0", "vitest": "^4.1.9" } }, + "client/node_modules/picomatch": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz", + "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "client/node_modules/vite": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/vite/-/vite-8.1.0.tgz", + "integrity": "sha512-BuJcQK/56NQTWDGn4ABea3q4SSBdNPWwNZKTkkUpcMPnLoquSYH8llRtSUIgoL1KSCpHt5eghLShn50mH36y7Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "lightningcss": "^1.32.0", + "picomatch": "^4.0.4", + "postcss": "^8.5.15", + "rolldown": "~1.1.2", + "tinyglobby": "^0.2.17" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "@vitejs/devtools": "^0.3.0", + "esbuild": "^0.27.0 || ^0.28.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "@vitejs/devtools": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, "node_modules/@adobe/css-tools": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.5.0.tgz",