)]}'
{
  "commit": "811555080c962723f4e1b266c99c241860e55998",
  "tree": "e28680705b32028a0083778212d518705e27897e",
  "parents": [
    "9325183a877088484f61a82b09545540370ca93d"
  ],
  "author": {
    "name": "flutteractionsbot",
    "email": "154381524+flutteractionsbot@users.noreply.github.com",
    "time": "Tue Feb 17 13:17:10 2026 -0800"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue Feb 17 21:17:10 2026 +0000"
  },
  "message": "[CP-beta]Fix `flutter build web` ignoring `--web-define` flag (#182345)\n\nThis pull request is created by [automatic cherry pick workflow](https://github.com/flutter/flutter/blob/main/docs/releases/Flutter-Cherrypick-Process.md#automatically-creates-a-cherry-pick-request)\r\nPlease fill in the form below, and a flutter domain expert will evaluate this cherry pick request.\r\n\r\n### Issue Link:\r\nWhat is the link to the issue this cherry-pick is addressing?\r\n\r\nhttps://github.com/flutter/flutter/issues/182076\r\n\r\n### Impact Description:\r\nWhat is the impact (ex. visual jank on Samsung phones, app crash, cannot ship an iOS app)?\r\nDoes it impact development (ex. flutter doctor crashes when Android Studio is installed),\r\nor the shipping of production apps (the app crashes on launch).\r\nThis information is for domain experts and release engineers to understand the consequences of saying yes or no to the cherry pick.\r\n\r\nThe `--web-define` feature works during development (i.e. `flutter run`), but doesn\u0027t work for production (i.e. `flutter build web`).\r\n\r\n### Changelog Description:\r\nExplain this cherry pick:\r\n* In one line that is accessible to most Flutter developers.\r\n* That describes the state prior to the fix.\r\n* That includes which platforms are impacted.\r\nSee [best practices](https://github.com/flutter/flutter/blob/main/docs/releases/Hotfix-Documentation-Best-Practices.md) for examples.\r\n\r\nFix `flutter build web` ignoring `--web-define` flag\r\n\r\n### Workaround:\r\nIs there a workaround for this issue?\r\n\r\nNo workaround.\r\n\r\n### Risk:\r\nWhat is the risk level of this cherry-pick?\r\n\r\n### Test Coverage:\r\nAre you confident that your fix is well-tested by automated tests?\r\n\r\n### Validation Steps:\r\nWhat are the steps to validate that this fix works?\r\n\r\nFollow repro steps in https://github.com/flutter/flutter/issues/182076",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "1606256ddc7b03f9c3a9cbb81a9695e3aa8d5559",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/lib/src/build_system/targets/web.dart",
      "new_id": "5fbf0f309abaa98f4a8ae6a79d08ab1f4832566d",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/lib/src/build_system/targets/web.dart"
    },
    {
      "type": "modify",
      "old_id": "661b77d1b73b8a5f7900c47c7b78421fd6e7bdd6",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/lib/src/commands/build_web.dart",
      "new_id": "5406f6e51c0b190b936eed77b0dbcd04a148b080",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/lib/src/commands/build_web.dart"
    },
    {
      "type": "modify",
      "old_id": "9589940f4be1477727b7b261685bf82862b700b7",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/lib/src/web/compile.dart",
      "new_id": "56c624ed40d505b3f856c7b966e0b5d5da1d9bea",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/lib/src/web/compile.dart"
    },
    {
      "type": "modify",
      "old_id": "d43cc185a2788f247b7bf5e175233bd0a3c69546",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/test/commands.shard/hermetic/build_web_test.dart",
      "new_id": "0d28cda211532c1303db6419c4f7c3d39f065022",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/test/commands.shard/hermetic/build_web_test.dart"
    },
    {
      "type": "modify",
      "old_id": "820679c8a50ab9280cd914027469bdea13f34f3c",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/test/general.shard/build_system/targets/web_test.dart",
      "new_id": "de87d526069515311e9c01901bdbea3f9e2b5be0",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/test/general.shard/build_system/targets/web_test.dart"
    }
  ]
}
