mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-02 08:06:00 +00:00
chore: Use dynamic import for manifest with Vite ignore. Fixes warning
This commit is contained in:
@@ -210,8 +210,9 @@ export class AdminController extends Controller {
|
|||||||
},
|
},
|
||||||
}).then((res) => res.json());
|
}).then((res) => res.json());
|
||||||
} else {
|
} else {
|
||||||
|
const manifestPath = "bknd/dist/manifest.json";
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
manifest = await import("bknd/dist/manifest.json", {
|
manifest = await import(/* @vite-ignore */ manifestPath, {
|
||||||
with: { type: "json" },
|
with: { type: "json" },
|
||||||
}).then((res) => res.default);
|
}).then((res) => res.default);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user