Upgrade frontend dependencies to match the Laravel 13 skeleton
Bump Vite 7 to 8 and laravel-vite-plugin 2 to 3. These are coupled: laravel-vite-plugin@3.1.3 peer-requires vite ^8.0.0, so neither moves alone. Also concurrently 9 to 10, tailwindcss and @tailwindcss/vite to 4.3.3, daisyui to 5.7.0, alpinejs to 3.15.12 and autoprefixer to 10.5.4. Drop axios. It had zero imports anywhere in resources/ or vite.config.js, and Laravel 13 removed it from the skeleton along with resources/js/bootstrap.js. Drop the @rollup/rollup-linux-x64-gnu optional dependency. Vite 8 builds with rolldown instead of rollup, so the pin no longer refers to anything in the build, and it was stuck at an exact 4.9.5 against a rollup that had since reached 4.62.x. The oxide and lightningcss optional pins are kept, as those native binaries are still used by tailwind and vite. vite.config.js needed no changes: it sets no rollupOptions, esbuild or manualChunks, so nothing hit the vite 8 config renames. Node engines (^20.19 || >=22.12) are satisfied by the node:24-alpine build stage, the dev container's Node 24.17 and CI's Node 24. Verified in a node:24-alpine container matching the Dockerfile assets stage: npm install, npm run build (vite 8.1.5, 3 modules, deterministic hashes) and npm ci all succeed. The rendered /upload page references the new build hashes, and the PHP suite still passes 123 tests. npm audit fix patched a pre-existing picomatch advisory reached via laravel-vite-plugin's vite-plugin-full-reload, with no downgrades. A shell-quote advisory via concurrently remains and is also pre-existing; concurrently is a local dev orchestration tool only and is not shipped to browsers. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
4391ad7fb9
commit
91dc4707af
Generated
+565
-1350
File diff suppressed because it is too large
Load Diff
+8
-10
@@ -7,18 +7,16 @@
|
||||
"dev": "vite"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tailwindcss/vite": "^4.1.11",
|
||||
"alpinejs": "^3.15.8",
|
||||
"autoprefixer": "^10.4.20",
|
||||
"axios": "^1.7.4",
|
||||
"concurrently": "^9.0.1",
|
||||
"daisyui": "^5.5.18",
|
||||
"laravel-vite-plugin": "^2.0",
|
||||
"tailwindcss": "^4.0.7",
|
||||
"vite": "^7.0.4"
|
||||
"@tailwindcss/vite": "^4.3.3",
|
||||
"alpinejs": "^3.15.12",
|
||||
"autoprefixer": "^10.5.4",
|
||||
"concurrently": "^10.0.3",
|
||||
"daisyui": "^5.7.0",
|
||||
"laravel-vite-plugin": "^3.1.3",
|
||||
"tailwindcss": "^4.3.3",
|
||||
"vite": "^8.1.5"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@rollup/rollup-linux-x64-gnu": "4.9.5",
|
||||
"@tailwindcss/oxide-linux-x64-gnu": "^4.0.1",
|
||||
"lightningcss-linux-x64-gnu": "^1.29.1"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user