Hello Mike,
There is a method : after you change the code, then enable the "Don't Write Generated Component Modules"
to prevent change your code. Please right click the component -> Code Generation -> Don't Write Generated Component Modules :
Hope it helps