Skip to content

resolveBundleSource

resolveBundleSource(options?): object

Defined in: db/duckdb.ts:54

Decide which bundle set to load and whether a jsDelivr fallback is allowed. Pure (no I/O) so the policy is unit-testable without instantiating DuckDB.

  • Injected bundles are returned verbatim — jsDelivr is never consulted, and a fallback is only allowed when explicitly opted into.
  • With no options, the jsDelivr CDN bundles are the primary source; there is no secondary fallback because we are already on the CDN (the retry loop in initDuckDB handles transient CDN hiccups).

DuckDBInitOptions

object

allowJsDelivrFallback: boolean

bundles: DuckDBBundles