For --profile builds on web, still use -O4 but unminified names. (#43214)
This commit is contained in:
committed by
Zachary Anderson
parent
096a8ac40a
commit
dee4232d0c
@@ -137,10 +137,10 @@ class Dart2JSTarget extends Target {
|
||||
'--libraries-spec=$specPath',
|
||||
if (dart2jsOptimization != null)
|
||||
'-$dart2jsOptimization'
|
||||
else if (buildMode == BuildMode.profile)
|
||||
'-O1'
|
||||
else
|
||||
'-O4',
|
||||
if (buildMode == BuildMode.profile)
|
||||
'--no-minify',
|
||||
'-o',
|
||||
outputFile.path,
|
||||
'--packages=$packageFile',
|
||||
|
||||
Reference in New Issue
Block a user