Not sure what's causing this bug, but it appears that ember-fetch is not transpiling to es5 on version 6.7.2 and over
Using Ember-cli 3.15.1
Confirmed using es-check
Reproduction steps:
In terminal:
npm i es-check -g
Using an Ember app with ember fetch version 6.7.2 or over
npm i
ember build --environment production
es-check es5 './dist/**/*.js'
Expected result: ES-Check: there were no ES version matching errors!
Actual result: ES-Check: there were 1 ES version matching errors.
· erroring file: ./dist/ember-fetch/fetch-fastboot-38cfd9007f94f81f5a2bc13690efc343.js
· error: SyntaxError: The keyword 'const' is reserved (3:0)
We get the expected result with version 6.7.0