UNPKG

piral-base

Version:

The base library for creating a Piral instance.

13 lines (11 loc) 502 B
import { includeScript } from '../../utils'; import type { PiletBundleEntry } from '../../types'; /** * Includes the given bundle script via its URL with a dependency resolution. * @param meta The meta data of the dependency to include. * @param crossOrigin The override for the cross-origin attribute. * @returns The evaluated module. */ export function includeBundle(meta: PiletBundleEntry, crossOrigin?: string) { return includeScript(meta.bundle, meta.link, meta.integrity, crossOrigin); }