Build `dart2wasm`-compiled DevTools with `--minify` flag
- Vorherrschende Sprache
- Dart
- Sterne
- 1.7k
- Forks
- 404
- Ø Merge
- 6 T. 17 Std.
- Gemergte PRs (30 T.)
- 18
Beschreibung
Currently we ship the unminified version of DevTools when compiled with dart2wasm: https://github.com/flutter/devtools/blob/22c619f23d1207f3c5162586dac71c5b8bbf84e8/tool/build_release.sh#L85
This is because:
1. with the `--no-minify-wasm` flag, we get detailed exception messages in our analytics
2. since all of the DevTools assets are served from the developer's local machine, the code size shouldn't affect IPL time too much
However, we would like to switch to using the minified version after the initial stable release with dart2wasm as default (Dart 3.11 / Flutter 3.41)
@mkustermann @osa1 are currently working on adding to decode production errors with the minified dart2wasm build, so as part of switching to the minified version we should also configure DevTools to use this tooling.
Beitragsleitfaden
Rechercherichtung
Beginne in tool/build_release.sh bei Zeile 85 und prüfe, wie dart2wasm aufgerufen wird, einschließlich der aktuellen Auswahl --no-minify-wasm. Überprüfe die von den referenzierten Contributors hinzugefügten Werkzeuge zum Decodieren von Production-Fehlern. Die Aufgabe ist abgeschlossen, wenn DevTools den minifizierten dart2wasm-Build verwendet und so konfiguriert ist, dass die Production-Fehler decodiert werden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- dart, wasm
- Bereich
- build-system, devtools
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 55/100