You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update: I found I don't need to preserve JSX. Line numbers stay the same even after the compilation.
I have a use case where I want to transform TypeScript to JavaScript. Then I can compare them, to know how many lines of TypeScript things (type, interface, etc.) are in the source file.
In my use case, I want to keep original file's syntax as much as possible. Is here a way to preserve JSX and comments?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Update: I found I don't need to preserve JSX. Line numbers stay the same even after the compilation.
I have a use case where I want to transform TypeScript to JavaScript. Then I can compare them, to know how many lines of TypeScript things (type, interface, etc.) are in the source file.
In my use case, I want to keep original file's syntax as much as possible. Is here a way to preserve JSX and comments?
Beta Was this translation helpful? Give feedback.
All reactions