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

后端 未结 2 2014
日久生厌
日久生厌 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:52

    You may try using debundle node module.

    Debundle

    0 讨论(0)
  • 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://

    0 讨论(0)
提交回复
热议问题