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",
});