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?



Maybe this will be helpful for You:

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

Answered By – galuszkak

Answer Checked By – Willingham (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *