what is `dart.js` in chartjs.dart example

Multi tool use
Multi tool use


what is `dart.js` in chartjs.dart example



I am learning [package:js][1] and reading the example here.


[package:js][1]



I am curious what is dart.js
here https://github.com/google/chartjs.dart/blob/master/example/index.html#L7 and what it is used for?


dart.js



Any hints welcomed. Thanks




2 Answers
2



That looks like it's using the older interface. Things have changed a lot since then. The modern angular rewrites everything on the fly so that those things are no longer needed in your source HTML.



It is the JavaScript output generated by dart2js when you build a Dart web project using pub build (Dart 1).


dart2js


pub build



For Dart 2 build is used instead and the browser and dart_to_js_script_rewriter packages are no longer necessary.


build


browser


dart_to_js_script_rewriter



See also
- https://pub.dartlang.org/packages/build_runner
- https://pub.dartlang.org/packages/build






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

rFi64Z4M7e,GX01t
AW3,35e0 Pr5nb2lHb5E,Zd jlmGe

Popular posts from this blog

Rothschild family

Cinema of Italy