Skip to content

Commit e58a0d5

Browse files
committed
chore: remove vite-plus (for now)
It seems like we're currently using vite-plus solely for running tests. It caused issues in the past that forced us to migrate away from it in most places (vite fmt, vite lint running postinstall and causing severe delays). It currently crashes on Windows arm64 machines. It is also explicitly said: > Vite+ is not yet stable and should not be used in production. With that in mind, vite-plus does not provide a lot of value to the project at the moment and therefore I propose removing it for now.
1 parent 7d69561 commit e58a0d5

File tree

4 files changed

+221
-360
lines changed

4 files changed

+221
-360
lines changed

knip.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ const config: KnipConfig = {
3636
],
3737
ignoreDependencies: [
3838
'@iconify-json/*',
39-
'@voidzero-dev/vite-plus-core',
40-
'vite-plus!',
4139
'puppeteer',
4240
/** Needs to be explicitly installed, even though it is not imported, to avoid type errors. */
4341
'unplugin-vue-router',

package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"generate:sprite": "node scripts/generate-file-tree-sprite.ts",
3535
"generate:fixtures": "node scripts/generate-fixtures.ts",
3636
"generate:lexicons": "lex build --lexicons lexicons --out shared/types/lexicons --clear",
37-
"test": "vite test",
37+
"test": "vitest",
3838
"test:a11y": "pnpm build:test && LIGHTHOUSE_COLOR_MODE=dark pnpm test:a11y:prebuilt && LIGHTHOUSE_COLOR_MODE=light pnpm test:a11y:prebuilt",
3939
"test:a11y:prebuilt": "./scripts/lighthouse.sh",
4040
"test:perf": "pnpm build:test && pnpm test:perf:prebuilt",
@@ -43,9 +43,9 @@
4343
"test:browser:prebuilt": "playwright test",
4444
"test:browser:ui": "pnpm build:test && pnpm test:browser:prebuilt --ui",
4545
"test:browser:update": "pnpm build:test && pnpm test:browser:prebuilt --update-snapshots",
46-
"test:nuxt": "vite test --project nuxt",
46+
"test:nuxt": "vitest --project nuxt",
4747
"test:types": "pnpm generate:lexicons && nuxt prepare && vue-tsc -b --noEmit && pnpm --filter npmx-connector test:types",
48-
"test:unit": "vite test --project unit",
48+
"test:unit": "vitest --project unit",
4949
"start:playwright:webserver": "NODE_ENV=test pnpm preview --port 5678"
5050
},
5151
"dependencies": {
@@ -75,7 +75,6 @@
7575
"@upstash/redis": "1.36.1",
7676
"@vite-pwa/assets-generator": "1.0.2",
7777
"@vite-pwa/nuxt": "1.1.0",
78-
"@voidzero-dev/vite-plus-core": "0.0.0-833c515fa25cef20905a7f9affb156dfa6f151ab",
7978
"@vueuse/core": "14.2.0",
8079
"@vueuse/integrations": "14.2.0",
8180
"@vueuse/nuxt": "14.2.0",
@@ -107,7 +106,6 @@
107106
"validate-npm-package-name": "7.0.2",
108107
"virtua": "0.48.5",
109108
"vite-plugin-pwa": "1.2.0",
110-
"vite-plus": "0.0.0-833c515fa25cef20905a7f9affb156dfa6f151ab",
111109
"vue": "3.5.28",
112110
"vue-data-ui": "3.15.0"
113111
},
@@ -136,7 +134,7 @@
136134
"schema-dts": "1.1.5",
137135
"simple-git-hooks": "2.13.1",
138136
"typescript": "5.9.3",
139-
"vitest": "npm:@voidzero-dev/vite-plus-test@0.0.0-833c515fa25cef20905a7f9affb156dfa6f151ab",
137+
"vitest": "^4.0.18",
140138
"vitest-environment-nuxt": "1.0.1",
141139
"vue-i18n-extract": "2.0.7",
142140
"vue-tsc": "3.2.4"

0 commit comments

Comments
 (0)