1
0
silverbullet/esbuild_deno_loader
Zef Hemel 561aa6891f
Migrate to Deno (#86)
Big bang migration to Deno 🤯
2022-10-10 14:50:21 +02:00
..
examples Migrate to Deno (#86) 2022-10-10 14:50:21 +02:00
src Migrate to Deno (#86) 2022-10-10 14:50:21 +02:00
testdata Migrate to Deno (#86) 2022-10-10 14:50:21 +02:00
deps.ts Migrate to Deno (#86) 2022-10-10 14:50:21 +02:00
LICENSE Migrate to Deno (#86) 2022-10-10 14:50:21 +02:00
makefile Migrate to Deno (#86) 2022-10-10 14:50:21 +02:00
mod.ts Migrate to Deno (#86) 2022-10-10 14:50:21 +02:00
README.md Migrate to Deno (#86) 2022-10-10 14:50:21 +02:00
test_deps.ts Migrate to Deno (#86) 2022-10-10 14:50:21 +02:00

esbuild_deno_loader

Deno module resolution for esbuild.

Example

This example bundles an entrypoint into a single ESM output.

import * as esbuild from "https://deno.land/x/esbuild@v0.14.51/mod.js";
import { denoPlugin } from "https://deno.land/x/esbuild_deno_loader@0.5.2/mod.ts";

await esbuild.build({
  plugins: [denoPlugin()],
  entryPoints: ["https://deno.land/std@0.150.0/hash/sha1.ts"],
  outfile: "./dist/sha1.esm.js",
  bundle: true,
  format: "esm",
});
esbuild.stop();