App does not bootstrap with --minifyjs on ios 10

It appears that my app does not bootstrap (and stays forever in the splash screen) whenever I build it with the --prod flag and try to run it on an iPhone with ios <10.

It works perfectly fine on ios11, and it works fine on ios10 without --prod.

Upon further investigation, I found out that the --minifyjs flag is the one causing the app to not bootstrap. Unfortunately, with this option, no console errors are being logged (when trying to debug it with safari, or in xcode) so the last things I see in the xcode console are:

[CDVTimer][TotalPluginStartup] 112.31234ms
[MC] Reading from public effective user settings.

This is with:

Ionic 3.19.1
Ionic-cli: 1.19.1
Cordova: 7.1.0
app-scripts: 3.1.2
ios platform: 4.5.4
ionic-angular: 3.9.2
ios-deploy: 1.9.2
Node: 9.4.0
npm: 5.6.0

Does anyone else have this problem?