Skip to main content
Deno 2 is finally here 🎉️
Learn more
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-alpha.32/bundler/mod.ts";

type

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