Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/alephjs/server/helpers.ts

The Full-stack Framework in Deno.
Go to Latest
import * as alephjs from "https://deno.land/x/alephjs@1.0.0-alpha.68.0/server/helpers.ts";

Functions

Get the deployment ID.

Get the UnoCSS generator, return null if the presets are empty.

Stores and returns the fn output in the globalThis object

Stores and returns the fn output in the globalThis object synchronously.

init loaders in CLI mode, or use prebuild loaders

Load the import maps from the json file.

Load the JSX config base the given import maps and the existing deno config.

restore the remote url from local path. e.g. /-/esm.sh/react@17.0.2 -> https://esm.sh/react@17.0.2

fix remote url to local path. e.g. https://esm.sh/react@17.0.2?dev -> /-/esm.sh/react@17.0.2?dev