I'm trying to not get messages like this when I run pub build:
WARN: [Dart2JS on mylib|web/mylib.dart]:
| 1 warning(s) and 2 hint(s) suppressed in package:otherlib.
WARN: [Dart2JS on pinged|web/mylib.dart]:
| 2 warning(s) suppressed in package:mylib.
WARN: [Warning from Dart2JS on mylib|web/mylib.dart]:
| 1 hint(s) suppressed in package:mypackage.
WARN: [Warning from Dart2JS on pinged|web/mylib.dart]:
| 1 hint(s) suppressed in package:otherpackage.
I've tried building with pub build --verbose --trace and adding --verbose to my $dart2js transformer commandLineOptions in pubspec.yaml.
It seems that, by default, dart2js does not suppress hints and warnings (hence the --suppress-warnings and --suppress-hints options), but the pub build "wrapper" around dart2js changes these defaults and gives you no real way to enable verbosity.
transformers:
- polymer:
entry_points: web/index.html
- $dart2js:
commandLineOptions: [--show-package-warnings]
see also:
Can you pass compiler flags to dart2js via Dart Editor
https://www.dartlang.org/tools/pub/dart2js-transformer.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With