this function bundles your deno-project's exports and outputs to your configuration's ["dir"] | dir directory on your filesystem. under the hood, it uses the blazing fast esbuild tool for bundling and for its native filesystem writing capabilities.

by default, this function reads your "deno.json" file's exports field, but you can manually modify the entryPoints by specifying them in the bundle_config | configuration's esbuild.entryPoints field.
take a look at BuildDistConfig to see what configuration options are available.