mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-29 05:34:21 +08:00
The update contains a bug fix that improves the quality for DevTools release source maps. The update also seems to stop minifiying certain names in the overlay bundle so we had to slightly bump the limit. * Old size: 69660 * New size: 71295 DISABLE_THIRD_PARTY_CHECK=Bump overlay size limit R=alexrudenko@chromium.org Bug: 1459146 Change-Id: I3036787bbb3ba8d28669b9aaab9c29c5f5581e55 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4693881 Commit-Queue: Simon Zünd <szuend@chromium.org> Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
@jridgewell/resolve-uri
Resolve a URI relative to an optional base URI
Resolve any combination of absolute URIs, protocol-realtive URIs, absolute paths, or relative paths.
Installation
npm install @jridgewell/resolve-uri
Usage
function resolve(input: string, base?: string): string;
import resolve from '@jridgewell/resolve-uri';
resolve('foo', 'https://example.com'); // => 'https://example.com/foo'
| Input | Base | Resolution | Explanation |
|---|---|---|---|
https://example.com |
any | https://example.com/ |
Input is normalized only |
//example.com |
https://base.com/ |
https://example.com/ |
Input inherits the base's protocol |
//example.com |
rest | //example.com/ |
Input is normalized only |
/example |
https://base.com/ |
https://base.com/example |
Input inherits the base's origin |
/example |
//base.com/ |
//base.com/example |
Input inherits the base's host and remains protocol relative |
/example |
rest | /example |
Input is normalized only |
example |
https://base.com/dir/ |
https://base.com/dir/example |
Input is joined with the base |
example |
https://base.com/file |
https://base.com/example |
Input is joined with the base without its file |
example |
//base.com/dir/ |
//base.com/dir/example |
Input is joined with the base's last directory |
example |
//base.com/file |
//base.com/example |
Input is joined with the base without its file |
example |
/base/dir/ |
/base/dir/example |
Input is joined with the base's last directory |
example |
/base/file |
/base/example |
Input is joined with the base without its file |
example |
base/dir/ |
base/dir/example |
Input is joined with the base's last directory |
example |
base/file |
base/example |
Input is joined with the base without its file |