Emscripten 3.1.0 has now been released with a minimal amount of internal
ES6 usage (https://github.com/emscripten-core/emscripten/pull/15765).
Assuming we don't hear of any issues in the next couple of weeks we will
start moving ahead with more usage in the new year.

cheers,
sam

On Fri, Dec 17, 2021 at 4:55 PM Sam Clegg <[email protected]> wrote:

> I'm hoping to land a change soon that will pave the way for allowing
> certain ES6 constructs in emscripten core libraries:
> https://github.com/emscripten-core/emscripten/pull/15763.
>
> The upshot for most users will be smaller, more idiomatic JS output.   For
> those users that are targeting older browsers that don't have full ES6
> support the default solution is to use closure compiler to (in
> WHITESPACE_ONLY mode) to transpile the output.   This transpilation will
> kick in automatically if you specify a `MIN_XX_VERSION` that doesn't
> support the ES6 features we are using.
>
> The downside here is that there will be an extra step in the linking
> process for some users.   The upside is more easy-to-maintain and smaller
> JS code size.
>
> cheers,
> sam
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/CAL_va28skh-3PZ5_f5k4KDe75sJUN-2kMDj%2B37BE7wFX-Hs7vA%40mail.gmail.com.

Reply via email to