packages/browser/dart.js
is a bootstrap script that checks if a Dart VM is available on your browser. If a Dart VM is available, your dart script is executed directly, otherwise packages/browser/dart.js
appends to the document a new js script with a url that points to a file with the same name as your dart file but with a appended .js
. Depending on how you work you may have to generate this JS file manually with dart2js :
dart2js --out=my_app.dart.js my_app.dart