Is there any way to convert webpack bundled js file into source code ts?

后端 未结 2 2015
日久生厌
日久生厌 2021-02-10 00:25

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

2条回答
  •  孤城傲影
    2021-02-10 00:53

    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://

提交回复
热议问题