This package adds support for Deno-style resolution and loading to esbuild. It's based on @deno/loader.
The key difference to @luca/esbuild-deno-loader is that leverages a WASM build of the same Rust crates that Deno itself uses for resolving and loading modules.
It supports the following specifiers:
file:data:npm:jsr:http:+https:
- Install this package
- Import it and add it to the
esbuildconfig.
import * as esbuild from "esbuild"; import { denoPlugin } from "@deno/esbuild-plugin"; await esbuild.build({ entryPoints: ["app.js"], bundle: true, outfile: "out.js", plugins: [denoPlugin()], });MIT, see the LICENSE file.