I recently updated an Angular app to Angular 6 and it resulted in the breaking of some functionality in the the angular2-swing package (0.14.0) I'm using. Specifically the onThrowOut method fails to fire when the app is built with the --prod flag. It fires correctly when the app is built in dev mode.