)]}'
{
  "commit": "ede4f6745c1b8123ba67678ffbc096f63301dcff",
  "tree": "0fc27ad573ad750027c5ffb513711e606a363702",
  "parents": [
    "3964e0e4e92162d03850c233db0210553b7d344c"
  ],
  "author": {
    "name": "Mouad Debbar",
    "email": "mdebbar@google.com",
    "time": "Fri Oct 02 00:54:10 2026 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Fri Oct 02 00:54:10 2026 +0000"
  },
  "message": "[flutter_tools] Include base href in web hot reload script paths (#193678)\n\nWhen the app has a `\u003cbase href\u003e` (e.g. `/f/`), the dev server already\nserves everything under that prefix and the initial load resolves all\nmodule scripts relative to it. But `reloaded_sources.json`, which drives\nhot reload and hot restart, lists modules as\n`/web_entrypoint.dart.lib.js`, `/packages/\u003capp\u003e/main.dart.lib.js`, etc.\nThe browser then requests them from the origin root, bypassing the base\nhref. Behind a reverse proxy that only forwards `/f/**`, those requests\n404 and hot reload breaks.\n\nDWDS also assumes the base href is there:\n[`_removeBasePath`](https://github.com/dart-lang/webdev/blob/4855a315fa9ce5e06680a0230ac6fe68846a4b76/dwds/lib/src/loaders/frontend_server_strategy_provider.dart#L34-L38)\nblindly drops `basePath.length` characters from every server path before\n[mapping it back to a\nmodule](https://github.com/dart-lang/webdev/blob/4855a315fa9ce5e06680a0230ac6fe68846a4b76/dwds/lib/src/loaders/frontend_server_strategy_provider.dart#L54-L61),\nso the root-relative paths were already producing wrong module lookups\nafter a reload.\n\nThis PR prefixes the `src` entries with `basePath` so they match the\ninitial load and DWDS\u0027 expectations.\n\nFixes https://github.com/flutter/flutter/issues/192433",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d49d8393e0ab6507405d3c5389e0d2693bd9338a",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/lib/src/isolated/web_asset_server.dart",
      "new_id": "fc5ecc5dec50b8ea5a3f9de40e836711f52a488f",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/lib/src/isolated/web_asset_server.dart"
    },
    {
      "type": "modify",
      "old_id": "ff56ee5e08f18614a514d6c15fe322ae2226eabc",
      "old_mode": 33188,
      "old_path": "packages/flutter_tools/test/general.shard/web/devfs_web_test.dart",
      "new_id": "1b6d3e244237df2eb5bd71600a74581fc296158d",
      "new_mode": 33188,
      "new_path": "packages/flutter_tools/test/general.shard/web/devfs_web_test.dart"
    }
  ]
}
