forked from microsoft/TypeScript
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Acknowledgement
- I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion.
Comment
🔎 Search Terms
comment like jsx text, preserve jsx
🕗 Version & Regression Information
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________
⏯ Playground Link
💻 Code
function App() {}
const jsx = <App>/* no */{/* 1 */ 123 /* 2 */}/* no */</App>;
🙁 Actual behavior
These duplicate sections will be rendered in the JSX text output:
"use strict";
function App() { }
const jsx = <App> /* no *//* no */{/* 1 */123 /* 2 */} /* no *//* no */</App>
// ~~~~~~~ ~~~~~~~
🙂 Expected behavior
"use strict";
function App() { }
- const jsx = <App> /* no *//* no */{/* 1 */123 /* 2 */} /* no *//* no */</App>
+ const jsx = <App> /* no */{/* 1 */123 /* 2 */} /* no */</App>
Additional information about the issue
No response
Copilot
Metadata
Metadata
Assignees
Labels
No labels