Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
esbuild
✓ github.com/evanw/esbuild
Minimal example of bundling a JavaScript file with esbuild.
package main
import (
"fmt"
"github.com/evanw/esbuild/pkg/api"
)
func main() {
result := api.Build(api.BuildOptions{
EntryPoints: []string{"app.js"},
Outfile: "out.js",
Bundle: true,
Write: true,
})
if len(result.Errors) > 0 {
fmt.Println("Build failed:", result.Errors)
}
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.27.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.