How to catch all errors in Ionic APP?

Hi there! I’ve integrated Sentry with Ionic App and it works fine.
But how to catch errors outside the Ionic?
I mean in case of a crash during ionic initialisation?

try to put the sentry init as the first place, immediately after the initlizaiton inheritance.