Sadly I somehow had a tsx file deleted from a custom widget and I am not able to recover it. i have an older version but if I use that I lose 2 days of work from changes I made. I have a compiled copy of a widget from a distribution. When I import the map back into eXb Dev from the deployment zip the widget shows back up but it is not decompiled back into my custom widgets folder. Does anyone know a way to decompile a widget using webpack if even possible?
Good news is i found VS code kept a history and I was able to recover code. Now the problem is experience builder seems to have a cached version of the widget even though it is not in the custom widgets folder. When I put updated code in that folder and restart webpack it states it is a duplicate name and doesn't load the new one. I can't figure out how to remove the old code. Assuming it is buried in some config somewhere.
It will be referenced in both of these files in every app its used in. Good luck!
Edit: Maybe starting with a clean download of Experience Builder would be easier.