ES6 Module Loader Translation

69 views
Skip to first unread message

Jim Simon

unread,
Mar 26, 2015, 6:38:12 PM3/26/15
to mi...@dartlang.org
Does the dev team have any plans to provide support for using ES6 Module Loader's ability to add on-the-fly compilation/transpilation for converting from dart to javascript at runtime?  This would be a neat way to allow javascript projects to use existing dart code, and could also improve the REPL experience for projects that don't use pub serve.  I also think this would fit in nicely with the just announced "Dart for the entire web" strategy/paradigm shift.

Bob Nystrom

unread,
Mar 27, 2015, 11:53:26 AM3/27/15
to General Dart Discussion, John Messerly

On Thu, Mar 26, 2015 at 3:37 PM, Jim Simon <jim.j...@gmail.com> wrote:
Does the dev team have any plans to provide support for using ES6 Module Loader's ability to add on-the-fly compilation/transpilation for converting from dart to javascript at runtime?  This would be a neat way to allow javascript projects to use existing dart code, and could also improve the REPL experience for projects that don't use pub serve.  I also think this would fit in nicely with the just announced "Dart for the entire web" strategy/paradigm shift.

Adding John to the thread since I think he would know the answer to this...

- bob

John Messerly

unread,
Mar 27, 2015, 12:51:27 PM3/27/15
to Bob Nystrom, General Dart Discussion
yeah, that would be super cool. I don't think any browsers implement the module loader spec yet, but as soon as there's something to play with, it would be really neat. If you're feeling eager, I think https://whatwg.github.io/loader/ has the spec and https://github.com/ModuleLoader/es6-module-loader is the polyfill.

(dart2js can already run in the browser, so that part's done: https://code.google.com/p/dart/wiki/TryDart)
Reply all
Reply to author
Forward
0 new messages