Javascript function not found in Edge but works in chrome

I have a web app in VS2019 using angular.js.

If I try to add or edit a function in “mySvc.js”, the change will work in Edge in “Debug Mode”. But I get an error “TypeError: ‘mySvc.MyNewFunction’ is not a function” when running in Edge “Without Debug”.

If I run the code using Chrome, the new or modified functions work fine in either “Debug Mode” or “Without Debug”.

Why is Edge giving an error when running in “Without Debug”?