有没有办法将webpack捆绑的js文件转换成源代码ts? [英] Is there any way to convert webpack bundled js file into source code ts?

查看:48
本文介绍了有没有办法将webpack捆绑的js文件转换成源代码ts?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么办法可以把webpack捆绑的js文件转成源代码ts吗?我有 bundle.js 文件与 webpack 捆绑在一起.不幸的是,源代码文件被一个愚蠢的意外删除了.我想对我的 bundle.js 文件进行逆向工程以取回我的源代码打字稿文件.有什么可能的方法来实现这一目标吗?

Is there any way to convert webpack bundled js file into source code ts? I have bundle.js file with me bundled with webpack. Unfortunately the source code files are deleted by a stupid accident. I want to reverse engineer my bundle.js file to get back my source code typescript files. Is there any possible way to achieve this?

推荐答案

你是否仍然有你的源地图文件(例如 main.bundle.js.map )?如果是这样,您可以运行您的应用程序(ng serve),在浏览器中打开 Chrome Dev Tools,您将在 Sources -> webpack://

Do you still have your source map files by any chance (e.g. main.bundle.js.map )? If so, you can run your app (ng serve), open the Chrome Dev Tools in your browser and you'll see your sources in TypeScript under the tab Sources -> webpack://

这篇关于有没有办法将webpack捆绑的js文件转换成源代码ts?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆