You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Compilation error for variableName = ({anotherVariale}) => sometext i.e. Template Literals #168
changed the title [-]Compilation error for variableName = ({anotherVariale}) => `sometext`[/-][+]Compilation error for variableName = ({anotherVariale}) => `sometext` i.e. Template Literals[/+]on Mar 28, 2019
[ERROR] illegal character at suite-asset-****-tool.js line 329:32
optionsHtml += `<option value="${options[i].value}">${options[i].name + marketedNote}</option>`;
^
[ERROR] syntax error at suite-asset-****-tool.js line 329:32
optionsHtml += `<option value="${options[i].value}">${options[i].name + marketedNote}</option>`;
^
[ERROR] illegal character at suite-asset-****-tool.js line 329:111
optionsHtml += `<option value="${options[i].value}">${options[i].name + marketedNote}</option>`;
^
This is a big problem for us; we're switching to use template literals as much as possible in our JS code, but for Java projects compiled with Maven we won't be able to do that. Please advise a workaround or when a fix may be coming.
This is because this plugin uses a rather old version of closure compiler that did not support many new JavaScript features yet. In case you are interested, I made a fork of this plugin, removed all CSS support (to focus on one task) and keep closure compiler up to date.
Activity
[-]Compilation error for variableName = ({anotherVariale}) => `sometext`[/-][+]Compilation error for variableName = ({anotherVariale}) => `sometext` i.e. Template Literals[/+]vcohen-irvinecompany commentedon May 14, 2019
I have a similar problem using minify-maven-plugin 1.7.6. My code is
I get the following compilation error:
This is a big problem for us; we're switching to use template literals as much as possible in our JS code, but for Java projects compiled with Maven we won't be able to do that. Please advise a workaround or when a fix may be coming.
blutorange commentedon Jun 20, 2019
This is because this plugin uses a rather old version of closure compiler that did not support many new JavaScript features yet. In case you are interested, I made a fork of this plugin, removed all CSS support (to focus on one task) and keep closure compiler up to date.