Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit e8fb641

Browse files
authored
Enable consts from environment in DDK for flutter_web (#10069)
Fixes: dart-lang/sdk#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.
1 parent bd38702 commit e8fb641

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web_sdk/flutter_kernel_sdk.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ Future main(List<String> args) async {
6363
..packagesFileUri = Uri.base.resolveUri(Uri.file(packagesPath))
6464
..librariesSpecificationUri = Uri.base.resolveUri(Uri.file(librarySpecPath))
6565
..target = target
66-
..onDiagnostic = onDiagnostic;
66+
..onDiagnostic = onDiagnostic
67+
..environmentDefines = {};
6768

6869
var inputs = target.extraRequiredLibraries.map(Uri.parse).toList();
6970
var component = await kernelForComponent(inputs, options);

0 commit comments

Comments
 (0)