Is supported natively in cordova-android >= 8.1.0
ionic cordova build android --prod --release -- -- --packageType=bundle
Note the extra -- --
dashes before --packageType
. First --
is required by cordova. Second one is required because there is another cli tool between (ionic).
If you use cordova without ionic:
cordova build android --prod --release -- --packageType=bundle