Go 847 FILES 5 FINDINGS

HOW ESBUILD
ACTUALLY WORKS

An extremely fast bundler for the web. Conventions, patterns, and architecture extracted from the evanw/esbuild repository by sourcebook.

QUICK_REF:
Build: make Testing: Go testing

WHAT_MATTERS

  • Module path: github.com/evanw/esbuild. Use this as the import prefix for all internal packages.

KEY_FINDINGS

Module path: github.com/evanw/esbuild. Use this as the import prefix for all internal packages.

HIGH

Standard Go project layout: cmd/ pkg/ internal/. Entry points are in cmd/ subdirectories.

HIGH

internal/ packages cannot be imported by external modules. Keep private code here.

HIGH

This is a publishable library, not an application. Focus changes on the public API surface.

HIGH
+ 1 MORE FINDINGS (MEDIUM CONFIDENCE)

Circular import chains detected: node.ts; browser.ts; wasm.ts. Avoid adding to these cycles.

MED
Hub files: scripts/esbuild.js, lib/shared/types.ts
GENERATED IN ~3 SECONDS WITH

npx sourcebook init

VIEW ON GITHUB star

FROM_THE_BLOG

RELATED_REPOS