fetch-load.js is not ES5 compatible in 6.14.0
erikt9 opened this issue · comments
Erik Tribou commented
Last version (6.14.0) introduced non-ES5 code (lines 20 - 24):
return this.fetch(url, {
credentials: 'same-origin',
integrity: importMap.integrity[url],
meta
})
The meta
is not ES5 syntax and makes the distributed bundle non-ES5.
陈杨文 commented
I don't get it, why this makes non-ES5 ?
Erik Tribou commented
The shortcut syntax { meta }
is not available in ES5. The code fails ES5 validators. It should be { meta: meta }
陈杨文 commented
Ok, got it