Microsoft/TypeScript
Voir sur GitHubtsc looses trailing comments in the produced js files
Open
#60 811 ouverte le 18 déc. 2024
Domain: Comment EmitHelp WantedPossible Improvement
Métriques du dépôt
- Stars
- (48 455 stars)
- Métriques de merge PR
- (Merge moyen 6j 17h) (9 PRs mergées en 30 j)
Description
🔎 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