TeaVM currently produces ES5 code, and it's important for some use cases (for example, to be compatible with Rhino, which does not fully support even ES6). However, it's hardly compatible with modern web tooling, and sometimes it's possible to generate less JavaScript using modern syntax. There should be a switch (both Maven, Gradle and CLI) that turns generation of modern JavaScript instead of old-fashioned ES5
TeaVM currently produces ES5 code, and it's important for some use cases (for example, to be compatible with Rhino, which does not fully support even ES6). However, it's hardly compatible with modern web tooling, and sometimes it's possible to generate less JavaScript using modern syntax. There should be a switch (both Maven, Gradle and CLI) that turns generation of modern JavaScript instead of old-fashioned ES5