Disable AoT on production builds

Does anyone know of any way to disable aot in production builds?

I’ve tried the following:

ionic cordova build android --device --release --prod --aot=false

…but I’m still getting AOT related errors.

AoT is an integral part of production builds. I would concentrate on fixing the errors instead of trying to figure out how to evade using it.

Can you provide a little more information on what makes it so integral?

As the name implies, it shifts a lot of work from runtime on-device to build-time in your development environment. That means less work for users’ devices, making the app both load and run faster. Additionally, it means that the Angular compiler itself need not even be included in the app bundle, further shrinking the size of the app binary (which impacts download and startup times).

See: