New ask Hacker News story: Ask HN: How do you relate rendered HTML to the TypeScript file it came from?

Ask HN: How do you relate rendered HTML to the TypeScript file it came from?
2 by jztan | 0 comments on Hacker News.
Let's say we have a any web app (React, Next, whatevr framework. It has a App.tsx file and Button.tsx file. We start the local development server and use puppeteer to extract the content. You can use whatever frameworks, source maps, tools, etc. How would you take that string input and figure out the line number where the typescript actually occurred?

Comments

Popular posts from this blog

How can Utilize Call Center Outsourcing for Increase your Business Income well?

New ask Hacker News story: Is someone trying to steal credit for inventing the eTicket?