I ask myself if it is possible to split up a single dart.js into multiple files. I just seek a possibility to convert several independent used JavaScript components in something that is as reusable but yet independently used Dart equivalents.
Asked
Active
Viewed 509 times
1 Answers
4
You can have a look at DeferredLibrary and the issue Enable dart2js to split output into N files to reduce initial download size (WARNING : the issue is not yet fixed).

Alexandre Ardhuin
- 71,959
- 15
- 151
- 132
-
1I don't think the N bit is implemented yet - can only split into 2 files at the moment. Perhaps make that more clear in your answer. – Greg Lowe Dec 16 '13 at 19:30
-
I want to wait until the better integration with JavaScript hits the road. I sometimes wonder why there is no easy way to split the code in multiple files that compile to JavaScript but actually work like Jars. Maybe its the threading model... . – Martin Kersten Dec 21 '13 at 23:54