systemjs / systemjs

Dynamic ES module loader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fetch-load.js is not ES5 compatible in 6.14.0

erikt9 opened this issue · comments

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.

I don't get it, why this makes non-ES5 ?

The shortcut syntax { meta } is not available in ES5. The code fails ES5 validators. It should be { meta: meta }

Ok, got it