The issue was "resolved" with the release of 0.15.1 + 2 , Polymer Dart .
Now the compiler issues a warning and, as indicated in the comments: βThe real solution for you here should be to put your script in your own html file and import it instead of the script. In the end, you should create an HTML file (for example, script_thats_used_multiple_times.html) with the following contents:
<!DOCTYPE html> <script type="application/dart" src="script_thats_used_multiple_times.dart"></script>
then, of course, remove the original from all polymer components that previously used this file, and set the import over
<link rel="import" href="script_thats_used_multiple_times.html">
which will import the previously created HTML file. Simple. "
source share