How to build ES5 app with Lightning?

If you need to build the app for ES5 you need to set it in settings.json:
“platformSettings”: {
“esEnv”: “es5”
}

Documented at Lightning SDK