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_va2_BQ%2BY5UCUuPDxCf5AJTopw1hhSeOneSHdVbegFvh14SQ%40mail.gmail.com.

Reply via email to