[turbopack] Fix URL fragment and query handling in Turbopack (#79993)
Fix URL fragment and query handling in Turbopack ## What? This PR improves how URL fragments and query strings are handled in Turbopack by: 1. Standardizing the representation of fragments and queries in `AssetIdent` 2. Ensuring fragments and queries are either empty or include their prefix characters (`#` and `?`) 3. Fixing the URL parsing logic to correctly handle fragments that contain `?` character 4. Removing some ad-hoc workarounds for this issue in the `resolver` and `Assetident::to_string` ## Why? The previous implementation had inconsistencies in how fragments and queries were represented which lead to a variety of confusing issues e.g. does `AssetIdent::to_string` need to add a `?` ?, well sometimes depending on how it was constructed.
Showing
This diff is collapsed.
Please
register
or
sign in
to comment