# AGENTS.md

An extremely fast bundler for the web

## Setup

```
go mod download
```

## Commands

```
make esbuild
make test               # run the test suite, must pass before any commit
make test-common
make test-all
make check-go-version
make test-go
```

## Layout

- `internal/`     137 source files
- `scripts/`      20 source files
- `pkg/`          13 source files
- `lib/`          10 source files
- `cmd/`          7 source files
- `compat-table/` 7 source files

## Conventions

- Tests live alongside the code they cover, following `cmd/esbuild/service_test.go`.
- CI defines what passing means. See `.github/workflows/ci.yml`, and keep it green.
- TODO: add the two or three conventions a newcomer always gets wrong here.

## Gotchas

- `internal/js_parser/js_parser.go` is 644KB. It will not fit comfortably in context, so read it in parts.

---

Drafted by agentreadme.com from what is in this repository. Everything marked TODO
needs a human. Check it in as AGENTS.md at the root.
