Adds config for ES6 support, change specs depending on whether it is enabled.