1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-20 14:37:43 +01:00

Compare commits

..

4 commits

Author SHA1 Message Date
Cooper
7495d51408
Fix an error in fetch.ts (probably the source of these build issues) 2024-09-23 11:42:49 +00:00
Cooper
fad6316020
update all packages 2024-09-23 00:31:38 +00:00
Cooper
af31bdb1cc
hopefully fix werid build errors 2024-09-23 00:23:14 +00:00
Cooper
c06e455453
attempt to fix manual chunk loading 2024-09-23 00:19:13 +00:00
4 changed files with 282 additions and 300 deletions

View file

@ -46,7 +46,7 @@
"detect-browser": "^5.3.0",
"dompurify": "^3.1.6",
"flag-icons": "^7.2.3",
"focus-trap-react": "^10.2.3",
"focus-trap-react": "^10.3.0",
"fscreen": "^1.2.0",
"fuse.js": "^7.0.0",
"hls.js": "^1.5.15",
@ -58,7 +58,7 @@
"million": "^2.6.4",
"nanoid": "^5.0.7",
"node-forge": "^1.3.1",
"ofetch": "^1.3.4",
"ofetch": "^1.4.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-ga4": "^2.1.0",
@ -78,7 +78,7 @@
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.4",
"@babel/preset-typescript": "^7.24.7",
"@rollup/wasm-node": "^4.21.2",
"@rollup/wasm-node": "^4.22.4",
"@types/chromecast-caf-sender": "^1.0.10",
"@types/crypto-js": "^4.2.2",
"@types/dompurify": "^3.0.5",
@ -88,7 +88,7 @@
"@types/lodash.throttle": "^4.1.9",
"@types/node": "^20.16.5",
"@types/pako": "^2.0.3",
"@types/react": "^18.3.5",
"@types/react": "^18.3.8",
"@types/react-dom": "^18.3.0",
"@types/react-helmet": "^6.1.11",
"@types/react-lazy-load-image-component": "^1.6.4",
@ -102,7 +102,7 @@
"@vitejs/plugin-react": "^4.3.1",
"autoprefixer": "^10.4.20",
"cross-env": "^7.0.3",
"eslint": "^8.57.0",
"eslint": "^8.57.1",
"eslint-config-airbnb": "19.0.4",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.3",
@ -114,18 +114,18 @@
"glob": "^10.4.5",
"handlebars": "^4.7.8",
"jsdom": "^23.2.0",
"postcss": "^8.4.45",
"postcss": "^8.4.47",
"postcss-rtl": "^2.0.0",
"postcss-rtlcss": "^4.0.9",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.5.14",
"rollup-plugin-visualizer": "^5.12.0",
"tailwind-scrollbar": "^3.1.0",
"tailwindcss": "^3.4.10",
"tailwindcss": "^3.4.12",
"tailwindcss-themer": "^4.0.0",
"type-fest": "^4.26.1",
"typescript": "^5.6.2",
"vite": "^5.4.3",
"vite": "^5.4.7",
"vite-plugin-checker": "^0.6.4",
"vite-plugin-package-version": "^1.1.0",
"vite-plugin-pwa": "^0.17.5",

File diff suppressed because it is too large Load diff

View file

@ -69,7 +69,12 @@ export async function singularProxiedFetch<T>(
onResponse(context) {
const tokenHeader = context.response.headers.get("X-Token");
if (tokenHeader) setApiToken(tokenHeader);
if (Array.isArray(ops.onResponse)) {
ops.onResponse.forEach((hook) => hook(context));
} else {
ops.onResponse?.(context);
}
},
});
}

View file

@ -122,9 +122,8 @@ export default defineConfig(({ mode }) => {
build: {
sourcemap: true,
chunkSizeWarningLimit: 1600,
rollupOptions: {
output: {
output: {},
manualChunks(id: string) {
if (id.includes("@sozialhelden+ietf-language-tags") || id.includes("country-language")) {
return "language-db";
@ -150,7 +149,6 @@ export default defineConfig(({ mode }) => {
}
}
}
}
},
css: {
postcss: {