Closed zoechi closed 8 years ago
Yes, this is working as intended for now at least. You can add the <script src="packages/browser/dart.js"></script>
script below your dart script and it will swap it at runtime (thats what we do in the tests) but it isn't ideal for deployment.
Really there should be a separate package which does this in a general fashion, but in the meantime we could add an option to the web_components
transformer to do it?
fwiw there is this https://pub.dartlang.org/packages/dart_to_js_script_rewriter but I have never used it
Ups, I forgot that browser/dart.js
needs to come after the Dart script tag.
Didn't do much client side Dart the recent year.
dart-lang/pub#779
Thanks, and sorry for the noise.
After changing
<script type="application/dart" src="index.bootstrap.initialize.dart"></script>
for example inbuild/web/google_analytics/index.html
tothe page works fine in Chrome.