See also the CLI section.

Using ES Modules, import from CDN URL.

  • index.js
      import build from "https://cdn.jsdelivr.net/npm/esbuild";
    
      esbuild.build({
        entryPoints: ['app.jsx'],
        bundle: true,
        outfile: 'out.js',
      })