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?
3 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?
3 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
Post a Comment