mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-08-28 17:21:05 +00:00
refactor: trim PR debloat and fix transformers build
Extract shared helpers for home notices, timetable subtitles, and theme images; dedupe global search, Select, and build scripts while preserving behaviour. Add @huggingface/transformers as a direct dependency and resolve ORT WASM paths via require.resolve so pnpm postinstall and Vite can bundle vector search. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -67,9 +67,6 @@ export default defineConfig(({ command, mode: viteMode }) => {
|
||||
const env = loadEnv(viteMode, repoRoot, "");
|
||||
|
||||
return {
|
||||
// Content scripts run on the host page; absolute `/assets/...` URLs would
|
||||
// resolve against SEQTA instead of chrome-extension://. Relative base makes
|
||||
// Vite emit import.meta.url-relative chunk/CSS URLs at runtime.
|
||||
base: command === "build" ? "./" : "/",
|
||||
define: {
|
||||
__ENABLE_GH_RELEASE_UPDATE_CHECK__: JSON.stringify(
|
||||
|
||||
Reference in New Issue
Block a user