jsReleaseFlags top-level property

ConfigVariable<List<String>> jsReleaseFlags
final

A modifiable list of flags to pass to dart2js only when compiling executables in release mode.

By default, this contains -O4, --no-minify, --no-source-maps, and --fast-startup. This doesn't minify by default because download size isn't especially important server-side and it's nice to get readable stack traces from bug reports.

Implementation

final jsReleaseFlags = InternalConfigVariable.value<List<String>>(
    ["-O4", "--no-minify", "--no-source-maps", "--fast-startup"],
    freeze: (list) => List.unmodifiable(list));