playif / play_phaser

A Dart port for Phaser 2D game engine.
MIT License
72 stars 13 forks source link

dart:mirrors - is it really needed? #36

Open aikar opened 8 years ago

aikar commented 8 years ago
****************************************************************
* WARNING: dart:mirrors support in dart2js is experimental,
*          and not recommended.
*          This implementation of mirrors is incomplete,
*          and often greatly increases the size of the generated
*          JavaScript code.
*
* Your app imports dart:mirrors via:
*   ef-client.dart => package:play_phaser => dart:mirrors
*
* You can disable this message by using the --enable-experimental-mirrors
* command-line flag.
*
* To learn what to do next, please visit:
*    http://dartlang.org/dart2js-reflection
****************************************************************

[Warning from Dart2JS]:
2530 methods retained for use by dart:mirrors out of 4921 total methods (51%)

is this really needed? Could it potentially be removed?

aikar commented 8 years ago

Is it used to keep the objects named respectively? If so, can you use the new JS Interop instead? https://pub.dartlang.org/packages/js