From b3cfd719b5b56bcd88ea6b10fd4910e10715ff70 Mon Sep 17 00:00:00 2001 From: Phan An Date: Sat, 23 Mar 2024 09:42:03 +0100 Subject: [PATCH] chore(build): upgrade Vite related packages --- package.json | 4 ++-- vite.config.js | 2 +- yarn.lock | 24 ++++++++++-------------- 3 files changed, 13 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index 569c74c3..15f2ced7 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "@types/youtube-player": "^5.5.2", "@typescript-eslint/eslint-plugin": "^5.22.0", "@typescript-eslint/parser": "^4.11.1", - "@vitejs/plugin-vue": "^3.1.2", + "@vitejs/plugin-vue": "^5.0.4", "@vueuse/core": "^10.9.0", "cross-env": "^7.0.3", "cypress": "^9.5.4", @@ -67,7 +67,7 @@ "js-md5": "^0.8.3", "jsdom": "^19.0.0", "kill-port": "^1.6.1", - "laravel-vite-plugin": "^0.6.1", + "laravel-vite-plugin": "^1.0.2", "lint-staged": "^10.3.0", "sass": "^1.72.0", "start-server-and-test": "^2.0.3", diff --git a/vite.config.js b/vite.config.js index 8de81568..c6686175 100644 --- a/vite.config.js +++ b/vite.config.js @@ -7,7 +7,7 @@ import path from 'path' export default defineConfig({ plugins: [ vue(), - laravel.default({ + laravel({ input: [ 'resources/assets/js/app.ts', 'resources/assets/js/remote/app.ts' diff --git a/yarn.lock b/yarn.lock index 15120dd0..36a8c2d1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -855,11 +855,6 @@ "@typescript-eslint/types" "5.39.0" eslint-visitor-keys "^3.3.0" -"@vitejs/plugin-vue@^3.1.2": - version "3.1.2" - resolved "https://registry.yarnpkg.com/@vitejs/plugin-vue/-/plugin-vue-3.1.2.tgz#3cd52114e8871a0b5e7bd7d837469c032e503036" - integrity sha512-3zxKNlvA3oNaKDYX0NBclgxTQ1xaFdL7PzwF6zj9tGFziKwmBa3Q/6XcJQxudlT81WxDjEhHmevvIC4Orc1LhQ== - "@vitejs/plugin-vue@^5.0.4": version "5.0.4" resolved "https://registry.yarnpkg.com/@vitejs/plugin-vue/-/plugin-vue-5.0.4.tgz#508d6a0f2440f86945835d903fcc0d95d1bb8a37" @@ -3396,12 +3391,13 @@ kind-of@^3.0.2: dependencies: is-buffer "^1.1.5" -laravel-vite-plugin@^0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/laravel-vite-plugin/-/laravel-vite-plugin-0.6.1.tgz#d60b31584871a7206feebcf1dd6ab67ea494a670" - integrity sha512-L8zt+bttm6+C0mo3an5J8wRW03SsjbTEouGb3bH2jj/XclFVAX/xEUkG9efhdRHjbEH5RY6cmdJ7bmf7zqjwIQ== +laravel-vite-plugin@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/laravel-vite-plugin/-/laravel-vite-plugin-1.0.2.tgz#97575181a1f870532b39ab3b423b53f01385feba" + integrity sha512-Mcclml10khYzBVxDwJro8wnVDwD4i7XOSEMACQNnarvTnHjrjXLLL+B/Snif2wYAyElsOqagJZ7VAinb/2vF5g== dependencies: - vite-plugin-full-reload "^1.0.1" + picocolors "^1.0.0" + vite-plugin-full-reload "^1.1.0" lazy-ass@1.6.0, lazy-ass@^1.6.0: version "1.6.0" @@ -4733,10 +4729,10 @@ verror@1.10.0: core-util-is "1.0.2" extsprintf "^1.2.0" -vite-plugin-full-reload@^1.0.1: - version "1.0.4" - resolved "https://registry.yarnpkg.com/vite-plugin-full-reload/-/vite-plugin-full-reload-1.0.4.tgz#3fecd446f9accd5af01eb0328f6d161dca7cfc45" - integrity sha512-9WejQII6zJ++m/YE173Zvl2jq4cqa404KNrVT+JDzDnqaGRq5UvOvA48fnsSWPIMXFV7S0dq5+sZqcSB+tKBgA== +vite-plugin-full-reload@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/vite-plugin-full-reload/-/vite-plugin-full-reload-1.1.0.tgz#ca6fa32631024a459ea9e5613dd4c0ff0f3b7995" + integrity sha512-3cObNDzX6DdfhD9E7kf6w2mNunFpD7drxyNgHLw+XwIYAgb+Xt16SEXo0Up4VH+TMf3n+DSVJZtW2POBGcBYAA== dependencies: picocolors "^1.0.0" picomatch "^2.3.1"