AGENTS.md
crates/swc_ecma_minifier/AGENTS.mdAGENTS.md
Quality
51/100
Scores the file, not the repository.Length
302 words
3 headings · 0 code blocksRepository
34k
— · pushed 0 days agoLast changed
2 days ago
First indexed 2 days ago.1### Instructions23- You can run execution tests by doing ./scripts/exec.sh to see if your changes are working.4- If an execution test fails, you are wrong.5- Always run execution tests after making changes.6- You can run fixture tests by doing ./scripts/test.sh, and you can do UPDATE=1 ./scripts/test.sh to update fixtures.78### Minifier Semantic Assumptions910The ECMAScript minifier may rely on the documented assumptions from the SWC11minification guide:1213- Calls to primitive coercion helpers such as `toString` and `valueOf` are14 side-effect free, and built-in object implementations have not been15 overridden.16- `undefined`, `NaN`, and `Infinity` have not been externally redefined.17- `arguments.callee`, `arguments.caller`, and `Function.prototype.caller` are18 not used.19- Code does not depend on the exact contents of `Function.prototype.toString()`20 or `Error.prototype.stack`.21- Getting or setting properties on a plain object does not trigger side effects22 through `watch`, `Proxy`, or similar mechanisms.23- Object properties can be added, removed, and modified unless the change is24 intentionally handling frozen, sealed, non-extensible, or descriptor-locked25 objects.26- `document.all` is treated as not `null`.27- Assigning properties to classes is assumed to be side-effect free and28 non-throwing.29- Accessing declared top-level identifiers is assumed to be side-effect free.30- TDZ violations are not preserved.31- Arithmetic expressions are treated as side-effect free, including runtime32 exceptions such as mixing `bigint` and `number`.3334If a minifier change relies on an assumption beyond this list, update the35public minification documentation or leave an explicit code comment describing36the narrower local invariant.3738### Fixture Test Addition Guide3940- Preferred fixture roots in this crate: tests/fixture, tests/mangle, tests/pass-1, tests/pass-default, tests/full, tests/projects, benches/full.41- Do not add new regression coverage to tests/terser. Use SWC-owned fixtures such as tests/fixture/issues instead.42- Update generated fixture outputs with: UPDATE=1 cargo test -p swc_ecma_minifier.43- Verify without UPDATE before finishing: cargo test -p swc_ecma_minifier.44
Also in swc-project/swc
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| swc-project/swcAGENTS.md · 34k | AGENTS.md | testlint-formatstyletesting-strategy+2 | 88/100 | 2 days ago | |
| swc-project/swcCLAUDE.md · 34k | CLAUDE.md | testlint-formatstyletesting-strategy+3 | 82/100 | 2 days ago | |
| swc-project/swccrates/jsdoc/AGENTS.md · 34k | AGENTS.md | testtesting-strategydocs | 16/100 | 2 days ago | |
| swc-project/swccrates/swc/AGENTS.md · 34k | AGENTS.md | testtesting-strategy | 28/100 | 2 days ago | |
| swc-project/swccrates/swc_bundler/AGENTS.md · 34k | AGENTS.md | testtesting-strategy | 16/100 | 2 days ago | |
| swc-project/swccrates/swc_core/AGENTS.md · 34k | AGENTS.md | testtesting-strategy | 16/100 | 2 days ago | |
| swc-project/swccrates/swc_css_codegen/AGENTS.md · 34k | AGENTS.md | testtesting-strategy | 16/100 | 2 days ago | |
| swc-project/swccrates/swc_css_compat/AGENTS.md · 34k | AGENTS.md | testtesting-strategy | 28/100 | 2 days ago | |
| swc-project/swccrates/swc_css_lints/AGENTS.md · 34k | AGENTS.md | testtesting-strategy | 16/100 | 2 days ago | |
| swc-project/swccrates/swc_css_minifier/AGENTS.md · 34k | AGENTS.md | testtesting-strategy | 16/100 | 2 days ago | |
| swc-project/swccrates/swc_css_modules/AGENTS.md · 34k | AGENTS.md | testtesting-strategy | 16/100 | 2 days ago | |
| swc-project/swccrates/swc_css_parser/AGENTS.md · 34k | AGENTS.md | testtesting-strategy | 16/100 | 2 days ago | |
| swc-project/swccrates/swc_css_prefixer/AGENTS.md · 34k | AGENTS.md | testtesting-strategy | 16/100 | 2 days ago | |
| swc-project/swccrates/swc_ecma_codegen/AGENTS.md · 34k | AGENTS.md | testtesting-strategy | 16/100 | 2 days ago | |
| swc-project/swccrates/swc_ecma_lints/AGENTS.md · 34k | AGENTS.md | testtesting-strategy | 16/100 | 2 days ago |
Diff against AGENTS.md Diff against CLAUDE.md Diff against crates/jsdoc/AGENTS.md Diff against crates/swc/AGENTS.md Diff against crates/swc_bundler/AGENTS.md Diff against crates/swc_core/AGENTS.md Diff against crates/swc_css_codegen/AGENTS.md Diff against crates/swc_css_compat/AGENTS.md Diff against crates/swc_css_lints/AGENTS.md Diff against crates/swc_css_minifier/AGENTS.md Diff against crates/swc_css_modules/AGENTS.md Diff against crates/swc_css_parser/AGENTS.md Diff against crates/swc_css_prefixer/AGENTS.md Diff against crates/swc_ecma_codegen/AGENTS.md Diff against crates/swc_ecma_lints/AGENTS.md
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| n8n-io/n8npackages/@n8n/agents/AGENTS.md · 199k | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| aaif-goose/gooseAGENTS.md · 52k | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| wpscanteam/wpscanAGENTS.md · 9.7k | AGENTS.md | setupbuildteststyle+6 | 100/100 | 2 days ago | |
| mui/material-uiAGENTS.md · 99k | AGENTS.md | setupbuildtestlint-format+9 | 100/100 | 3 days ago | |
| SkeneTechnologies/skene-cookbookAGENTS.md · 51 | AGENTS.md | setupbuildtestlint-format+7 | 100/100 | 2 days ago | |
| duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70 | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| trick77/agents-md-syncAGENTS.md · 2 | AGENTS.md | setupbuildteststyle+5 | 100/100 | 3 days ago | |
| TryGhost/Ghoste2e/AGENTS.md · 55k | AGENTS.md | setupteststylearch+2 | 100/100 | 3 days ago |
