adobe / asset-share-commons

A modern, open-source asset share reference implementation built on Adobe Experience Manager (AEM)
https://opensource.adobe.com/asset-share-commons/
Apache License 2.0
88 stars 107 forks source link

Errors during processing (minification) of client libraries #837

Closed kwin closed 2 years ago

kwin commented 2 years ago

Describe the bug Some errors can be seen after deploying the client libraries to AEM Cloud SDK

Environment

28.10.2022 10:16:26.519 *INFO* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.adobe.granite.ui.clientlibs.impl.HtmlLibraryManagerImpl Start building JS library: /apps/asset-share-commons/clientlibs/clientlib-dependencies (minified)
28.10.2022 10:16:26.602 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:349: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: const declaration._const map = new WeakMap_^_
28.10.2022 10:16:26.602 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:350: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: const declaration._const wm = o => map.get(o)_^_
28.10.2022 10:16:26.602 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:350: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: arrow function._const wm = o => map.get(o)_           ^_
28.10.2022 10:16:26.602 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:351: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: let declaration._let type = obj => Object.prototype.toString.call(obj).slice(8, -1)_^_
28.10.2022 10:16:26.602 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:351: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: arrow function._let type = obj => Object.prototype.toString.call(obj).slice(8, -1)_           ^_
28.10.2022 10:16:26.602 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:397: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: array destructuring._function normalizeValue([value, filename]) {_                        ^_
28.10.2022 10:16:26.602 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:416: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: template literal._    throw new TypeError(`2 arguments required, but only ${arguments.length} present.`)_                        ^_
28.10.2022 10:16:26.602 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:430: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: class._class FormDataPolyfill {_^_
28.10.2022 10:16:26.602 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:437: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: member declaration._  constructor(form) {_  ^_
28.10.2022 10:16:26.602 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:443: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: for-of loop._    for (let {name, type, value, files, checked, selectedOptions} of Array.from(form.elements)) {_    ^_
28.10.2022 10:16:26.602 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:443: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: let declaration._    for (let {name, type, value, files, checked, selectedOptions} of Array.from(form.elements)) {_         ^_
28.10.2022 10:16:26.602 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:443: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: object destructuring._    for (let {name, type, value, files, checked, selectedOptions} of Array.from(form.elements)) {_             ^_
28.10.2022 10:16:26.602 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:447: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: for-of loop._        for (let file of files)_        ^_
28.10.2022 10:16:26.602 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:447: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: let declaration._        for (let file of files)_             ^_
28.10.2022 10:16:26.602 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:450: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: for-of loop._        for (let elm of Array.from(selectedOptions))_        ^_
28.10.2022 10:16:26.602 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:450: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: let declaration._        for (let elm of Array.from(selectedOptions))_             ^_
28.10.2022 10:16:26.602 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:468: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: member declaration._  append(name, value, filename) {_  ^_
28.10.2022 10:16:26.602 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:469: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: let declaration._    let map = wm(this)_    ^_
28.10.2022 10:16:26.602 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:484: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: member declaration._  delete(name) {_  ^_
28.10.2022 10:16:26.602 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:494: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: generator._  *entries() {_  ^_
28.10.2022 10:16:26.602 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:494: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: member declaration._  *entries() {_  ^_
28.10.2022 10:16:26.602 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:495: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: let declaration._    let map = wm(this)_    ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:497: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: let declaration._    for (let name in map)_         ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:498: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: for-of loop._      for (let value of map[name])_      ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:498: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: let declaration._      for (let value of map[name])_           ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:509: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: member declaration._  forEach(callback, thisArg) {_  ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:510: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: for-of loop._    for (let [name, value] of this)_    ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:510: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: let declaration._    for (let [name, value] of this)_         ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:510: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: array destructuring._    for (let [name, value] of this)_             ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:521: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: member declaration._  get(name) {_  ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:522: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: let declaration._    let map = wm(this)_    ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:533: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: member declaration._  getAll(name) {_  ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:544: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: member declaration._  has(name) {_  ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:554: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: generator._  *keys() {_  ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:554: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: member declaration._  *keys() {_  ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:555: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: for-of loop._    for (let [name] of this)_    ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:555: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: let declaration._    for (let [name] of this)_         ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:555: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: array destructuring._    for (let [name] of this)_             ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:568: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: member declaration._  set(name, value, filename) {_  ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:578: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: generator._  *values() {_  ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:578: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: member declaration._  *values() {_  ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:579: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: for-of loop._    for (let [name, value] of this)_    ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:579: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: let declaration._    for (let [name, value] of this)_         ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:579: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: array destructuring._    for (let [name, value] of this)_             ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:589: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: member declaration._  stream() {_  ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:604: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: computed property._  ['_asNative']() {_  ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:605: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: let declaration._    let fd = new FormData_    ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:607: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: for-of loop._    for (let [name, value] of this)_    ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:607: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: let declaration._    for (let [name, value] of this)_         ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:607: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: array destructuring._    for (let [name, value] of this)_             ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:619: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: computed property._  ['_blob']() {_  ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:623: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: for-of loop._    for (let [name, value] of this) {_    ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:623: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: let declaration._    for (let [name, value] of this) {_         ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:623: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: array destructuring._    for (let [name, value] of this) {_             ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:624: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: template literal._      chunks.push(`--${boundary}\r\n`)_                  ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:628: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: template literal._          `Content-Disposition: form-data; name="${name}"; filename="${value.name}"\r\n`,_          ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:629: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: template literal._          `Content-Type: ${value.type}\r\n\r\n`,_          ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:635: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: template literal._          `Content-Disposition: form-data; name="${name}"\r\n\r\n${value}\r\n`_          ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:640: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: template literal._    chunks.push(`--${boundary}--`)_                ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:652: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: computed property._  [Symbol.iterator]() {_  ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:662: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: member declaration._  toString() {_  ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:678: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: for-of loop._for (let [method, overide] of [_^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:678: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: let declaration._for (let [method, overide] of [_     ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:678: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: array destructuring._for (let [method, overide] of [_         ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:686: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: let declaration._  let orig = FormDataPolyfill.prototype[method]_  ^_
28.10.2022 10:16:26.603 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-dependencies.js:688: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: spread expression._    return orig.apply(this, overide(...arguments))_                                    ^_
28.10.2022 10:16:26.603 *WARN* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp 66 error(s), 0 warning(s)

and

28.10.2022 10:16:26.620 *INFO* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.adobe.granite.ui.clientlibs.impl.HtmlLibraryManagerImpl Start building JS library: /apps/asset-share-commons/clientlibs/clientlib-base (minified)
28.10.2022 10:16:26.698 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-base.js:448: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: default parameter._    function getObject(key, useLocalStorage = true) {_                            ^_
28.10.2022 10:16:26.698 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-base.js:464: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: default parameter._    function setObject(key, object, useLocalStorage = true) {_                                    ^_
28.10.2022 10:16:26.698 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-base.js:510: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: const declaration._    const PROFILE_KEY       = 'profile',_    ^_
28.10.2022 10:16:26.698 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-base.js:513: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: let declaration._    let currentUserId;_    ^_
28.10.2022 10:16:26.698 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-base.js:802: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: arrow function._       return getDownloads().map(download => download.id);_                                 ^_
28.10.2022 10:16:26.698 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-base.js:862: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: const declaration._    const CURRENT_USER_URI   = '/libs/granite/security/currentuser.json',_    ^_
28.10.2022 10:16:26.698 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-base.js:883: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: const declaration._            const currentUser = profileStore.getUserProfile();_            ^_
28.10.2022 10:16:26.698 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-base.js:908: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: for-of loop._            for (const [key, value] of Object.entries(data)) {_            ^_
28.10.2022 10:16:26.698 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-base.js:908: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: const declaration._            for (const [key, value] of Object.entries(data)) {_                 ^_
28.10.2022 10:16:26.698 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-base.js:908: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: array destructuring._            for (const [key, value] of Object.entries(data)) {_                       ^_
28.10.2022 10:16:26.698 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-base.js:1584: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: const declaration._    const DOWNLOAD_ID = "id",_    ^_
28.10.2022 10:16:26.698 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-base.js:1638: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: template literal._                url: `${POLL_ENDPOINT}?downloadId=${downloadData.id}`,_                     ^_
28.10.2022 10:16:26.698 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-base.js:1643: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: for-of loop._                        for (let artifact of data[DOWNLOAD_ARTIFACTS]) {_                        ^_
28.10.2022 10:16:26.698 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-base.js:1643: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: let declaration._                        for (let artifact of data[DOWNLOAD_ARTIFACTS]) {_                             ^_
28.10.2022 10:16:26.698 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-base.js:1650: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: template literal._                        console.debug(`Max attempts reached polling of ${downloadData.id}, saving downloadId to session storage.`);_                                      ^_
28.10.2022 10:16:26.698 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-base.js:1675: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: template literal._            console.info(`${downloadData.id} was not added to session storage`);_                         ^_
28.10.2022 10:16:26.698 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp /apps/asset-share-commons/clientlibs/clientlib-base.js:1695: ERROR - This language feature is only supported for ECMASCRIPT6 mode or better: let declaration._            let loaderMessage = $(ns.Elements.selector(LOADING_SELECTOR)).detach();_            ^_
28.10.2022 10:16:26.698 *WARN* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.google.javascript.jscomp 17 error(s), 0 warning(s)
28.10.2022 10:16:26.698 *ERROR* [[0:0:0:0:0:0:0:1] [1666944983577] GET /content/asset-share-commons/en/light.html HTTP/1.1] com.adobe.granite.ui.clientlibs.processor.gcc.impl.GCCScriptProcessor Processed /apps/asset-share-commons/clientlibs/clientlib-base.js. 17 error(s), 0 warning(s)
kwin commented 2 years ago

GCC used for minification in AEM uses ECMASCRIPT5 as input language level (https://experienceleague.adobe.com/docs/experience-cloud-kcs/kbarticles/KA-16544.html?lang=en)

The following options are supported:

AEM 6.5 and AEM SDK 2022/07 uses GCC version v20190121

(https://github.com/google/closure-compiler/blob/5e61881d48a6eef9110369f235d1ac53e9f6d23f/src/com/google/javascript/jscomp/CompilerOptions.java#L3084)

The safest option though is to minify during the build and disable the minification at runtime. This comes with the drawback of making it harder to debug JS issues as one cannot easily toggle minification on/off.