0

I've been trying to programmatically extract the original, debundled JavaScript source files behind a web app that uses Webpack bundles and source maps. While Chrome DevTools clearly shows the original source files when debugging, I'm wondering if there's any way to access these original source files (not just the bundled JS) directly via the Chrome DevTools Protocol (CDP) or tools like Playwright.

I understand that CDP provides the bundled scripts and the sourceMap URLs, but it doesn't seem to expose the parsed or "unbundled" source files that Chrome DevTools displays in the Sources panel.

Has anyone managed to automate retrieving or reconstructing these original sources from sourcemaps purely through CDP? Or is downloading and parsing sourcemap files manually the only way?

1
  • no, you cannot. you can get the "bundled" JS and deobfuscate it. google "javascript deobfuscator and unpacker" for more details. Commented Jul 17 at 1:29

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.