Update 'dump-info' usage for dart2js builds (#156187)

Dart2js updated its CLI to support generating a 'dump-info' json file by passing a "--stage" option. The "dump-info-all" stage performs a full compilation (from the provided dill) and then also generates the dump info file.

Tested via the `flutter-dev` CLI locally. This results in the same output but with the addition of an extra `main.dart.js.info.json` file.
This commit is contained in:
Nate Biggs
2024-10-07 16:06:18 -04:00
committed by GitHub
parent 86ce72d46d
commit da71e6e93d
2 changed files with 2 additions and 2 deletions

View File

@@ -953,7 +953,7 @@ void main() {
'--no-minify',
'--no-source-maps',
'-O4',
'--dump-info',
'--stage=dump-info-all',
'-o',
environment.buildDir.childFile('main.dart.js').absolute.path,
environment.buildDir.childFile('app.dill').absolute.path,