Files
Donny/강동윤GitHubclaude[bot] <41898282+claude[bot]@users.noreply.github.com>Donny/강동윤
308dc30245 fix(es/codegen): Restore missing top-level comments (#11302)
This fixes an issue where top-level comments (like copyright headers)
were being lost after PR #11199 changed Module/Script spans to start at
position 0.

The fix skips emitting leading comments at Module/Script level when the
body is non-empty. Instead, comments are emitted by the first body item
with a real source span. Injected imports have DUMMY_SP, so they skip
comment emission, and original source items emit their comments
correctly after the imports.

Closes #11167

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

---------

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Donny/강동윤 <[email protected]>
2025-11-19 18:19:53 +09:00
..