Search code examples
dartangular-dartdart2js

Too large JS-file generated


I have this code:

// main.dart
import "package:angular/angular.dart";
main () => ngBootstrap();

I make dart2js --minify --out=main.dart.js main.dart

Then i have main.dart.js with size 2.6 MiB (2,744,320 bytes). It is not normal. What i'm doing wrong?

Is angular.dart usable for production at this stage?


Solution

  • @media-slave24

    Maybe this will be helpful for You: https://code.google.com/p/dart/issues/detail?id=14686

    It's reported on dart bug tracking system. Some people using mirrors got 760kb. So it's definitely a bug.