Skip to main content
Module

x/jsbundle/mod.ts>loadBundle

Binary files for Javascript, used for Netrex.
Latest
function loadBundle
import { loadBundle } from "https://deno.land/x/jsbundle@v1.0.6/mod.ts";

Loads a bundle into memory and returns the imports.

const mod = await loadBundle('module1', myFile); const main = mod.get('module1'); main; // the mod.ts/mod.js of the packed bundle.

Parameters

bundleName: string
  • The name (path) of the temporary extracted bundle
bundle: Uint8Array
  • The bundle archive
optional
modOnly: boolean = [UNSUPPORTED]
  • Whether or not to only load the common mod.ts or mod.js entries
optional
modOnlyName: string = [UNSUPPORTED]
  • Whether or not to delete the temporary bundle after extraction.
optional
deleteAfter: boolean = [UNSUPPORTED]