π Search Terms
- comment removal
- removeComments
π Version & Regression Information
- This is the behavior in every version I tried.
β― Playground Link
https://www.typescriptlang.org/play?ts=5.2.2#code/KYDwDg9gTgLgBAYwgOwM7wGYQnAvHAbwCg5S4sIAuOAcgpoBo4B6ZuGACwEtVEIBbfsGTwA7lwA2EuACNgcKMH4QAbsAAmAOhJkZAQyjUa+qDRZtOPPoOFjJ0uXADWwMDCYyArmI4BPbQC+QA
π» Code
export const foo = {
foo: 'foo', // this comment will be removed, however this should be kept
bar: 'bar' // this comment will be kept, works well
}
π Actual behavior
export const foo = {
foo: 'foo',
bar: 'bar' // this comment will be kept, works well
}
π Expected behavior
export const foo = {
foo: 'foo', // this comment will be removed, however this should be kept
bar: 'bar' // this comment will be kept, works well
}
Additional information about the issue
No response
π Search Terms
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play?ts=5.2.2#code/KYDwDg9gTgLgBAYwgOwM7wGYQnAvHAbwCg5S4sIAuOAcgpoBo4B6ZuGACwEtVEIBbfsGTwA7lwA2EuACNgcKMH4QAbsAAmAOhJkZAQyjUa+qDRZtOPPoOFjJ0uXADWwMDCYyArmI4BPbQC+QA
π» Code
π Actual behavior
π Expected behavior
Additional information about the issue
No response