mirror of
https://github.com/tale/headplane.git
synced 2026-08-27 15:37:04 +00:00
feat: upgrade to vite 8 stable
This commit is contained in:
+11
-4
@@ -87,8 +87,7 @@
|
|||||||
"testcontainers": "^11.12.0",
|
"testcontainers": "^11.12.0",
|
||||||
"tsx": "^4.21.0",
|
"tsx": "^4.21.0",
|
||||||
"typescript": "^5.9.3",
|
"typescript": "^5.9.3",
|
||||||
"vite": "8.0.0-beta.0",
|
"vite": "^8.0.0",
|
||||||
"vite-tsconfig-paths": "^6.0.4",
|
|
||||||
"vitepress": "next",
|
"vitepress": "next",
|
||||||
"vitest": "^4.0.18"
|
"vitest": "^4.0.18"
|
||||||
},
|
},
|
||||||
@@ -110,11 +109,19 @@
|
|||||||
},
|
},
|
||||||
"onlyBuiltDependencies": [
|
"onlyBuiltDependencies": [
|
||||||
"@tailwindcss/oxide",
|
"@tailwindcss/oxide",
|
||||||
|
"bufferutil",
|
||||||
|
"cpu-features",
|
||||||
"esbuild",
|
"esbuild",
|
||||||
"lefthook"
|
"lefthook",
|
||||||
|
"protobufjs",
|
||||||
|
"ssh2",
|
||||||
|
"utf-8-validate"
|
||||||
],
|
],
|
||||||
"patchedDependencies": {
|
"patchedDependencies": {
|
||||||
"react-router-hono-server": "patches/react-router-hono-server.patch"
|
"react-router-hono-server": "patches/react-router-hono-server.patch"
|
||||||
}
|
},
|
||||||
|
"ignoredBuiltDependencies": [
|
||||||
|
"better-sqlite3"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+260
-711
File diff suppressed because it is too large
Load Diff
+5
-8
@@ -5,7 +5,6 @@ import { reactRouter } from "@react-router/dev/vite";
|
|||||||
import tailwindcss from "@tailwindcss/vite";
|
import tailwindcss from "@tailwindcss/vite";
|
||||||
import { reactRouterHonoServer } from "react-router-hono-server/dev";
|
import { reactRouterHonoServer } from "react-router-hono-server/dev";
|
||||||
import { defineConfig } from "vite";
|
import { defineConfig } from "vite";
|
||||||
import tsconfigPaths from "vite-tsconfig-paths";
|
|
||||||
import { parse } from "yaml";
|
import { parse } from "yaml";
|
||||||
|
|
||||||
const prefix = process.env.__INTERNAL_PREFIX || "/admin";
|
const prefix = process.env.__INTERNAL_PREFIX || "/admin";
|
||||||
@@ -42,28 +41,26 @@ const { server } = parse(config);
|
|||||||
|
|
||||||
export default defineConfig(({ command, isSsrBuild }) => ({
|
export default defineConfig(({ command, isSsrBuild }) => ({
|
||||||
base: command === "build" ? `${prefix}/` : undefined,
|
base: command === "build" ? `${prefix}/` : undefined,
|
||||||
plugins: [reactRouterHonoServer(), reactRouter(), tailwindcss(), tsconfigPaths()],
|
plugins: [reactRouterHonoServer(), reactRouter(), tailwindcss()],
|
||||||
server: {
|
server: {
|
||||||
host: server.host,
|
host: server.host,
|
||||||
port: server.port,
|
port: server.port,
|
||||||
},
|
},
|
||||||
|
resolve: {
|
||||||
|
tsconfigPaths: true,
|
||||||
|
},
|
||||||
build: {
|
build: {
|
||||||
target: "esnext",
|
target: "baseline-widely-available",
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
rolldownOptions:
|
rolldownOptions:
|
||||||
command === "build"
|
command === "build"
|
||||||
? {
|
? {
|
||||||
// Exclude WASM from the client since it fetches from the server
|
// Exclude WASM from the client since it fetches from the server
|
||||||
external: isSsrBuild ? [] : [/\.wasm(\?url)?$/],
|
external: isSsrBuild ? [] : [/\.wasm(\?url)?$/],
|
||||||
output: {
|
|
||||||
manualChunks: undefined,
|
|
||||||
inlineDynamicImports: isSsrBuild,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
: undefined,
|
: undefined,
|
||||||
},
|
},
|
||||||
ssr: {
|
ssr: {
|
||||||
target: "node",
|
|
||||||
noExternal: command === "build" ? true : undefined,
|
noExternal: command === "build" ? true : undefined,
|
||||||
},
|
},
|
||||||
define: {
|
define: {
|
||||||
|
|||||||
Reference in New Issue
Block a user