Enable consts from environment in DDK for flutter_web (flutter/engine#10069)

Fixes: https://github.com/dart-lang/sdk/issues/37605

We were seeing unevaluated constants during the build for flutter_web. Passing an empty map is handled differently than null so the constant evaluation will kick in.
This commit is contained in:
Nicholas Shahan
2019-07-23 16:05:36 -07:00
committed by GitHub
parent 471657f667
commit 9c0942ff2d

View File

@@ -63,7 +63,8 @@ Future main(List<String> args) async {
..packagesFileUri = Uri.base.resolveUri(Uri.file(packagesPath))
..librariesSpecificationUri = Uri.base.resolveUri(Uri.file(librarySpecPath))
..target = target
..onDiagnostic = onDiagnostic;
..onDiagnostic = onDiagnostic
..environmentDefines = {};
var inputs = target.extraRequiredLibraries.map(Uri.parse).toList();
var component = await kernelForComponent(inputs, options);