If I develop a Dart library, is there an idiom to transpile the Dart library to a JavaScript one?
Assume the Dart library mainly exports two things: a class and a function. On JavaScript side, a JavaScript class/object and a function are expected.
UPDATE
What I expect can be addressed in this scenario: I define a class ArrayList in my Dart lib (the directive library and the kerword export are used), and then I use some way to transpile this Dart lib to a JavaScript lib, in which there's some definition like: function ArrayList() { ... } . Thus, in a client JavaScript one can use it like: var a = new ArrayList() .