upgrade to vite 8

This commit is contained in:
Athou
2026-03-13 22:17:04 +01:00
parent 451ae5bc51
commit 2c803327ad
4 changed files with 1280 additions and 1673 deletions

View File

@@ -1,5 +1,5 @@
{ {
"$schema": "https://biomejs.dev/schemas/2.4.6/schema.json", "$schema": "https://biomejs.dev/schemas/2.4.7/schema.json",
"formatter": { "formatter": {
"indentStyle": "space", "indentStyle": "space",
"indentWidth": 4, "indentWidth": 4,

File diff suppressed because it is too large Load Diff

View File

@@ -18,8 +18,8 @@
"dependencies": { "dependencies": {
"@emotion/react": "^11.14.0", "@emotion/react": "^11.14.0",
"@fontsource/open-sans": "^5.2.7", "@fontsource/open-sans": "^5.2.7",
"@lingui/core": "^5.9.2", "@lingui/core": "^5.9.3",
"@lingui/react": "^5.9.2", "@lingui/react": "^5.9.3",
"@mantine/core": "^8.3.16", "@mantine/core": "^8.3.16",
"@mantine/form": "^8.3.16", "@mantine/form": "^8.3.16",
"@mantine/hooks": "^8.3.16", "@mantine/hooks": "^8.3.16",
@@ -29,8 +29,9 @@
"@monaco-editor/react": "^4.7.0", "@monaco-editor/react": "^4.7.0",
"@react-querybuilder/mantine": "^8.14.0", "@react-querybuilder/mantine": "^8.14.0",
"@reduxjs/toolkit": "^2.11.2", "@reduxjs/toolkit": "^2.11.2",
"@rolldown/plugin-babel": "^0.2.1",
"axios": "^1.13.6", "axios": "^1.13.6",
"dayjs": "^1.11.19", "dayjs": "^1.11.20",
"escape-string-regexp": "^5.0.0", "escape-string-regexp": "^5.0.0",
"interweave": "^13.1.1", "interweave": "^13.1.1",
"monaco-editor": "^0.55.1", "monaco-editor": "^0.55.1",
@@ -53,10 +54,10 @@
"websocket-heartbeat-js": "^1.1.3" "websocket-heartbeat-js": "^1.1.3"
}, },
"devDependencies": { "devDependencies": {
"@biomejs/biome": "^2.4.6", "@biomejs/biome": "^2.4.7",
"@lingui/babel-plugin-lingui-macro": "^5.9.2", "@lingui/babel-plugin-lingui-macro": "^5.9.3",
"@lingui/cli": "^5.9.2", "@lingui/cli": "^5.9.3",
"@lingui/vite-plugin": "^5.9.2", "@lingui/vite-plugin": "^5.9.3",
"@testing-library/jest-dom": "^6.9.1", "@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2", "@testing-library/react": "^16.3.2",
"@testing-library/user-event": "^14.6.1", "@testing-library/user-event": "^14.6.1",
@@ -66,16 +67,15 @@
"@types/react-infinite-scroller": "^1.2.5", "@types/react-infinite-scroller": "^1.2.5",
"@types/throttle-debounce": "^5.0.2", "@types/throttle-debounce": "^5.0.2",
"@types/tinycon": "^0.6.7", "@types/tinycon": "^0.6.7",
"@vitejs/plugin-react": "^5.1.4", "@vitejs/plugin-react": "^6.0.1",
"babel-plugin-react-compiler": "1.0.0", "babel-plugin-react-compiler": "1.0.0",
"husky": "^9.1.7", "husky": "^9.1.7",
"jsdom": "^28.1.0", "jsdom": "^28.1.0",
"lint-staged": "^16.3.3", "lint-staged": "^16.3.3",
"typescript": "^5.9.3", "typescript": "^5.9.3",
"vite": "^7.3.1", "vite": "^8.0.0",
"vite-plugin-checker": "^0.12.0", "vite-plugin-checker": "^0.12.0",
"vite-tsconfig-paths": "^6.1.1", "vitest": "^4.1.0",
"vitest": "^4.0.18",
"yaml": "^2.8.2" "yaml": "^2.8.2"
}, },
"overrides": { "overrides": {

View File

@@ -1,25 +1,17 @@
import { lingui } from "@lingui/vite-plugin" import { lingui } from "@lingui/vite-plugin"
import react from "@vitejs/plugin-react" import babel from "@rolldown/plugin-babel"
import react, { reactCompilerPreset } from "@vitejs/plugin-react"
import { defineConfig } from "vite" import { defineConfig } from "vite"
import checker from "vite-plugin-checker" import checker from "vite-plugin-checker"
import tsconfigPaths from "vite-tsconfig-paths"
// https://vitejs.dev/config/
export default defineConfig(() => ({ export default defineConfig(() => ({
plugins: [ plugins: [
react({ react(),
babel: { babel({
plugins: [ presets: [reactCompilerPreset()],
// support for lingui macros plugins: ["@lingui/babel-plugin-lingui-macro"],
// needs to be before the react compiler plugin
"@lingui/babel-plugin-lingui-macro",
// react compiler
["babel-plugin-react-compiler", { target: "19" }],
],
},
}), }),
lingui(), lingui(),
tsconfigPaths(),
checker({ checker({
typescript: true, typescript: true,
biome: { biome: {
@@ -43,18 +35,12 @@ export default defineConfig(() => ({
"/logout": "http://localhost:8083", "/logout": "http://localhost:8083",
}, },
}, },
build: { resolve: {
chunkSizeWarningLimit: 3500, tsconfigPaths: true,
rollupOptions: { },
output: { legacy: {
manualChunks: id => { // required for websocket-heartbeat-js
// output mantine as its own chunk because it is quite large inconsistentCjsInterop: true,
if (id.includes("@mantine")) {
return "mantine"
}
},
},
},
}, },
test: { test: {
environment: "jsdom", environment: "jsdom",