We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e180e22 commit 964bc29Copy full SHA for 964bc29
src/loader.ts
@@ -306,9 +306,17 @@ async function resolveConfig<
306
const _merger = options.merger || defu;
307
308
// Download giget URIs and resolve to local path
309
+ const customProviderKeys = Object.keys(
310
+ sourceOptions.giget?.providers || {},
311
+ ).map((key) => `${key}:`);
312
+ const gigetPrefixes =
313
+ customProviderKeys.length > 0
314
+ ? [...new Set([...customProviderKeys, ...GIGET_PREFIXES])]
315
+ : GIGET_PREFIXES;
316
+
317
if (
318
options.giget !== false &&
- GIGET_PREFIXES.some((prefix) => source.startsWith(prefix))
319
+ gigetPrefixes.some((prefix) => source.startsWith(prefix))
320
) {
321
const { downloadTemplate } = await import("giget");
322
const { digest } = await import("ohash");
0 commit comments