v0.12.8
A utility module for loading esbuild wasm into Deno runtime from the disk
Repository
Current version released
4 years ago
Versions
esbuild_loader v0.12.8
This module provides a way to load esbuild wasm into Deno runtime from the disk.
Usage
This module exports load
method. The method works like the below:
import { load } from "https://deno.land/x/esbuild_loader@v0.12.8/mod.ts";
const { build } = await load("local/path/to/esbuild.wasm");
build({ entryPoints: ["./foo.js"] });
load
returns builder interface which expose build
method. build
method has the same signature as Esbuild’s Build API.
Deno compatible bundling
You can bundle JavaScript and TypeScript in Deno compatible way using esbuild_deno_loader.
export { denoPlugin } from "https://raw.githubusercontent.com/lucacasonato/esbuild_deno_loader/fa2219c3df9494da6c33e3e4dffb1a33b5cc0345/mod.ts";
import { load } from "https://deno.land/x/esbuild_loader@v0.12.8/mod.ts";
const { build } = await load("local/path/to/esbuild.wasm");
build({ entryPoints: ["./foo.js"], plugins: [denoPlugin()], bundle: true });
This performs Deno compatible bundling.
License
MIT