4 ms·
Maybe I'm missing something, but yes, I think so. Dart version 0.8.10.3_r29803. pubspec.yaml: name: test1 dependencies: browser: any angular: git: htt
by Max_Horstmann 13y ago
Maybe I'm missing something, but yes, I think so. Dart version 0.8.10.3_r29803.
pubspec.yaml:
name: test1
dependencies:
browser: any
angular:
git: https://github.com/angular/angular.dart.git https://github.com/angular/angular.dart.git
test1.dart:
import 'package:angular/angular.dart';
main() => ngBootstrap();
dart2js launch => builds test1.dart.js, about 5MB, 142,749 loc.
- jbdeboer 13y agoYes. You need to add a @MirrorsUsed annotation in your main.dart file. See https://github.com/jbdeboer/angular-dart-js-size/blob/master/main.dart https://github.com/jbdeboer/angular-dart-js-size/blob/master... for our current best practices. You should get ~173KB gzipped, minified dart2js output.
- Max_Horstmann 13y agoBeautiful. Thanks!