Microsoft/TypeScript
GitHub ã§èŠãtsc looses trailing comments in the produced js files
Open
#60,811 opened on 2024幎12æ18æ¥
Domain: Comment EmitHelp WantedPossible Improvement
Repository metrics
- Stars
- Â (48,455 stars)
- PR merge metrics
-  (å¹³åããŒãž 6d 17h) (30d ã§ 9 merged PRs)
説æ
ð Search Terms
"missing comments", "missing comments in .js output", "trailing comments"
ð Version & Regression Information
Happens in every version available in the playground (3.3.3 to v5.8.0-dev.20241218)
⯠Playground Link
ð» Code
class A {
// keep-sorted start
methodA() {
console.log("sorted");
}
// keep-sorted end
}
ð Actual behavior
// keep-sorted end is missing in the .js output.
ð Expected behavior
// keep-sorted end is retained in the .js output.
Additional information about the issue
No response