google/blockly-games

Using ES8 features with blockly build

davidkmrcode opened this issue · 1 comments

I tried to use async/await with the blockly build, but got the following when trying to make en:

[JSC_LANGUAGE_FEATURE] This language feature is only supported for ECMASCRIPT8 mode or better: async function.

Is there a way to use ECMASCRIPT8 features with the build?

You will need to change the 'language_in' property here:
https://github.com/google/blockly-games/blob/master/build-app.py#L224

Here's a list of options supported by the Closure Compiler:
https://github.com/google/closure-compiler/wiki/Flags-and-Options