Closed ghost closed 8 years ago
I can solved this with:
closure {
warningLevel = 'DEFAULT'
compilationLevel = 'WHITESPACE_ONLY'
compilerOptions = [
languageIn: 'ECMASCRIPT6',
languageOut: 'ECMASCRIPT5'
]
}
Class CompilerOptions
contains the attributtes languageIn and languageOn... closure-compiler/src/com/google/javascript/jscomp/CompilerOptions.java
This resolve what is the languageIn
and whats the languageOn
:
Additional Webservice Options
This should appear on plugin's documentation...
this language feature is only supported in es6 mode: template literal. Use --language_in=ECMASCRIPT6 or ECMASCRIPT6_STRICT to enable ES6 features
How can i solve this error?
My closure on minify task is:
closure { warningLevel = 'QUIET' compilationLevel = 'WHITESPACE_ONLY' }