Files
bun.sh/src
Claude Bot dd27427aac feat: add legalComments option to Bun.build() API
Adds full JavaScript API support for the legalComments option:

- Bun.build({ legalComments: "none" | "inline" | "eof" | "linked" | "external" })
- Proper enum validation with helpful error messages for invalid values
- Integration with bundler configuration pipeline
- Comprehensive test coverage in bun-build-api.test.ts

Example usage:
```javascript
await Bun.build({
  entrypoints: ["src/index.js"],
  legalComments: "eof", // Move legal comments to end of file
  outdir: "dist"
});
```

This completes the esbuild compatibility for legal comment handling
in both CLI and JavaScript API.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-14 22:48:07 +00:00
..
2025-07-21 13:26:47 -07:00
2025-08-12 19:59:34 -07:00
2025-08-12 22:25:49 -07:00
2025-07-21 13:26:47 -07:00
2025-07-29 19:35:46 -07:00
2025-07-21 13:26:47 -07:00
Fix
2025-08-04 23:33:29 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-29 18:07:15 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-08-12 22:25:49 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-02-01 01:11:02 -08:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00