dojo / dojo/util

Dojo Build 1.17.3 Closure compiler and string literals SyntaxError: illegal character

Open
#94 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
60
Forks
104
PR merge metrics
No merged PRs in 30d

Description

I commonly use string literals in a number of modules and no matter how simple the simple literals is I am getting this error

"Failed to evaluate module tagged as pure AMD (fell back to processing with regular expressions). module: xxxxxx ; error: SyntaxError: illegal character"

An examples of the string literals I am using that is throwing the error:
path=`path/${x}`;

I have in the my profile:

basePath: "./",
layerOptimize: "closure",
optimize: "closure",
releaseDir: "./release",
hasReport: true,
optimizeOptions: {
languageIn: 'ECMASCRIPT_2021',
languageOut: 'ECMASCRIPT_2021'
},

I thoughts this would set the compile to ES6, but I am also having issue to defining variables using "let".

Is there other settings in the profile that I should look at?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.