fix: resolve frontend build failures in CI

- Remove noautoinject Wails scripts from config.html (Vite 6 requires
  type="module" on all script tags; Wails auto-injects them anyway).
- Replace vite-tsconfig-paths plugin with Vite native resolve.alias,
  fixing path alias resolution that was silently broken during builds.
- Remove unused vite-tsconfig-paths dependency.
This commit is contained in:
2026-02-13 23:06:01 -06:00
parent 0d678c3c1f
commit 330a53c9f4
4 changed files with 13 additions and 52 deletions
+12 -4
View File
@@ -1,7 +1,18 @@
import path from "path";
import { defineConfig } from "vite";
import tsConfigPaths from "vite-tsconfig-paths";
export default defineConfig({
resolve: {
alias: {
"@go": path.resolve(__dirname, "wailsjs/go"),
"@components": path.resolve(__dirname, "src/components"),
"@assets": path.resolve(__dirname, "src/assets"),
"@pages": path.resolve(__dirname, "src/pages"),
"@runtime": path.resolve(__dirname, "wailsjs/runtime"),
"@utils": path.resolve(__dirname, "src/utils"),
"@store": path.resolve(__dirname, "src/store"),
},
},
build: {
rollupOptions: {
input: {
@@ -10,9 +21,6 @@ export default defineConfig({
},
},
},
plugins: [
tsConfigPaths(),
],
server: {
hmr: {
host: 'localhost',