How do I inject es6-promise polyfill in the Lightning js build/polyfills folder

I need it to run the application on an older version of rdk emulator

There’s a way to to compile to ES5. You can either set that option on the platform settings, under the settings.json file or when running the lng cli you can specify with a flag at build time if you want your build to be in es5.