Skip to main content
Module

x/aleph/bundler/mod.ts>bundlerRuntimeCode

The Full-stack Framework in Deno.
Very Popular
Go to Latest
variable bundlerRuntimeCode
import { bundlerRuntimeCode } from "https://deno.land/x/aleph@v0.3.0-beta.7/bundler/mod.ts";

type

` window.__ALEPH__ = { basePath: '/', pack: {}, asyncChunks: {}, import: function(s, r) { var a = this.pack, b = this.basePath, d = document, l = this.asyncChunks; if (s in a) { return Promise.resolve(a[s]); } return new Promise(function(y, n) { var e = d.createElement('script'), f = l[s] || l[s.replace(/\\.[a-zA-Z0-9]+$/, '')], p = b.replace(/\\/+$/, '') + '/_aleph'; if (!f) { n(new Error('invalid specifier: ' + s)); return; } e.onload = function() { y(a[s]); }; e.onerror = n; p += f; if (r) { p += '?t=' + (new Date).getTime(); } e.src = p; d.body.appendChild(e); }) } } `