Merge pull request #379 from jonaspm/chore/fix-manifestpath-warning

chore: Use dynamic import for manifest with Vite ignore. Fixes warning
This commit is contained in:
dswbx
2026-03-28 11:28:11 +01:00
committed by GitHub
+2 -1
View File
@@ -210,8 +210,9 @@ export class AdminController extends Controller {
},
}).then((res) => res.json());
} else {
const manifestPath = "bknd/dist/manifest.json";
// @ts-ignore
manifest = await import("bknd/dist/manifest.json", {
manifest = await import(/* @vite-ignore */ manifestPath, {
with: { type: "json" },
}).then((res) => res.default);
}