google / blockly-games

Games for tomorrow's programmers.
https://blockly.games/
Apache License 2.0
1.29k stars 605 forks source link

Using ES8 features with blockly build #172

Closed davidkmrcode closed 4 years ago

davidkmrcode commented 4 years ago

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?

NeilFraser commented 4 years ago

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