From 37906d4dfbe80d71f312f7347bb9ddb930484d28 Mon Sep 17 00:00:00 2001 From: Devon Govett Date: Mon, 27 Jan 2025 12:39:56 -0800 Subject: [PATCH] [Flight Parcel] Pass import maps through client references (#32132) Corresponding Parcel PR: https://github.com/parcel-bundler/parcel/pull/10073 Parcel avoids [cascading cache invalidation](https://philipwalton.com/articles/cascading-cache-invalidation/) by injecting a bundle manifest containing a mapping of stable bundle ids to hashed URLs. When using an HTML entry point, this is done (as of the above PR) via a native import map. This means that if a bundle's hash changes, only that bundle will be invalidated (plus the HTML itself which typically has a short caching policy), not any other bundles that reference it. For RSCs, we cannot currently use native import maps because of client side navigations, where a new HTML file is not requested. Eventually, multiple `