Skip to content

Latest commit

 

History

History

esbuild

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

@debugids/esbuild

npm version

Injects Debug IDs into source and sourcemaps when using esbuild.

build.mjs

import * as esbuild from "esbuild";
import debugIds from "@debugids/esbuild";

await esbuild.build({
  entryPoints: ["./src/main.js"],
  bundle: true,
  format: "esm",
  sourcemap: true,
  minify: true,
  plugins: [debugIds],
  outdir: "./dist",
});