You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Accept bundle and symbolication requests in JSC-safe format (//& in place of ?)
Summary:
The first part of implementing react-native-community/discussions-and-proposals#646 to address facebook/react-native#36794.
This allows Metro to respond to bundle and symbolication requests that use URLs with `//&` in place of `?` as a query delimiter.
```
**[Feature]**: Support URLs for both bundling and symbolication requests using `//&` instead of `?` as a query string delimiter
```
(Note: This does *not* add support for registering HMR entry points in the JSC-safe format - that's not necessary at this point, if at all, and I'm keen to minimise the footprint of this stack for easier backporting.)
Reviewed By: huntie
Differential Revision: D45983877
fbshipit-source-id: e799f76cd26c2ca8026b4d1bf70a582814ae1790
Copy file name to clipboardExpand all lines: docs/Configuration.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -615,7 +615,7 @@ The possibility to add custom middleware to the server response chain.
615
615
616
616
Type: `string=> string`
617
617
618
-
A function that will be called every time Metro processes a URL. Metro will use the return value of this function as if it were the original URL provided by the client. This applies to all incoming HTTP requests (after any custom middleware), as well as bundle URLs in `/symbolicate` request payloads and within the hot reloading protocol.
618
+
A function that will be called every time Metro processes a URL, after normalization of non-standard query-string delimiters using [`jsc-safe-url`](https://www.npmjs.com/package/jsc-safe-url). Metro will use the return value of this function as if it were the original URL provided by the client. This applies to all incoming HTTP requests (after any custom middleware), as well as bundle URLs in `/symbolicate` request payloads and within the hot reloading protocol.
0 commit comments