Skip to main content
Module

x/import/deps.ts>esbuildWASM.serve

🐎 A ponyfill for using dynamic imports within Deno Deploy.
Go to Latest
function esbuildWASM.serve
import { esbuildWASM } from "https://deno.land/x/import@v0.1.6/deps.ts";
const { serve } = esbuildWASM;

This function is similar to "build" but it serves the resulting files over HTTP on a localhost address with the specified port.

  • Works in node: yes
  • Works in browser: no

Documentation: https://esbuild.github.io/api/#serve

Parameters

serveOptions: ServeOptions
buildOptions: BuildOptions