Don't compile to JS in minified mode

The JS size doesn't really matter on the server side, and this makes
profiling the release-mode binary substantially easier, as well as
improving the quality of stack traces provided by downstream users.
This commit is contained in:
Natalie Weizenbaum 2019-07-12 13:12:31 -07:00
parent 0e47e03305
commit a841882724

View File

@ -40,7 +40,10 @@ void _js({@required bool release}) {
// * We expect our test coverage to ensure that nothing throws subtypes of
// Error.
// * We thoroughly test edge cases in user input.
if (release) ...["-O4", "--fast-startup"]
//
// We don't minify because download size isn't especially important
// server-side and it's nice to get readable stack traces from bug reports.
if (release) ...["-O4", "--no-minify", "--fast-startup"]
]);
var text = destination
.readAsStringSync()