Get code back from prod build


#1

I did a blunder and clicked undo all changes in VSCODE. I have the prod build before i did this. The step undid days worth of work. I wonder if I can get code back from the build folder. Thanks.


#2

extract apk file using winrar. And find main.js folder. It has all your code in prototypes form.


#3

Simple answer: No. Your .ts files don’t exist in the build in any form that would help you.
You can go into main.js, but this is the minified and optimized JS version of your app.

Lesson: Commit more often.


#4

Thanks HarinderSingh and Sujan12 for replying…

I had sunken heart last night. Recovered some pieces but still quite a bit lost. And yes, I learnt it. Commit often.