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?