Re:Why I'm joining the Dart Team
by munificent on Monday January 11, 2016 @12:16PM
(#10881684)
I can't give you any time estimates, but what you're asking for is exactly what the team has in mind with "DDC", the new Dart -> JS transpiler[1].
It produces much cleaner, more readable JS and is designed to make it much easier to interop with JS code in both directions.
But I found the emphasis on Dart's use as an application building language didn't fit my use case very well - compiling JavaScript libraries.
In short, I wanted to use Dart as a cleaner replacement for the Closure libraries and compiler. It didn't work well. Not only was the JavaScript quite large, but exposing APIs was a time-consuming manual process.
I noticed the change of focus to using Dart as a language that transpiles to JavaScript for in-browser use. That sounds like what I'm looking for.
When will it be possible to use Dart to conveniently create minified JavaScript libraries that expose well-defined interfaces?