Am I missing something? When I make code changes to my custom widget, it's absolutely horrible getting my app to show the changes. I created a demo app to test my widget and add my web map. This is, of course, to save time so you can just test in the same app over and over. But my widget code changes don't show up in the widget after the app has been created, it just keeps using the widget in the exact same code state it was when first added to the app.
The only way I can see my tiny little code changes and debug is to create a brand new app, re-add my web map to the app, and then add the widget again to the app. THEN, and only then do my most recent code updates show up.