From 5d650c1c23da2e472a3c2e91525c19cdaf3266cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9E=E3=83=AB=E3=82=B3=E3=83=A1?= Date: Wed, 23 Oct 2024 13:25:16 +0900 Subject: [PATCH] chore: fix wrong path of comments (#71682) ## Description At #44405, many files moved. Then sync comment paths. Co-authored-by: JJ Kasper --- crates/next-core/src/util.rs | 4 ++-- .../js/src/browser/dev/hmr-client/websocket.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/next-core/src/util.rs b/crates/next-core/src/util.rs index 2c707771af0c25..76551718ba7467 100644 --- a/crates/next-core/src/util.rs +++ b/crates/next-core/src/util.rs @@ -70,7 +70,7 @@ pub async fn pathname_for_path( Ok(Vc::cell(path)) } -// Adapted from https://github.com/vercel/next.js/blob/canary/packages/next/shared/lib/router/utils/get-asset-path-from-route.ts +// Adapted from https://github.com/vercel/next.js/blob/canary/packages/next/src/shared/lib/router/utils/get-asset-path-from-route.ts // TODO(alexkirsz) There's no need to create an intermediate string here (and // below), we should instead return an `impl Display`. pub fn get_asset_prefix_from_pathname(pathname: &str) -> String { @@ -83,7 +83,7 @@ pub fn get_asset_prefix_from_pathname(pathname: &str) -> String { } } -// Adapted from https://github.com/vercel/next.js/blob/canary/packages/next/shared/lib/router/utils/get-asset-path-from-route.ts +// Adapted from https://github.com/vercel/next.js/blob/canary/packages/next/src/shared/lib/router/utils/get-asset-path-from-route.ts pub fn get_asset_path_from_pathname(pathname: &str, ext: &str) -> String { format!("{}{}", get_asset_prefix_from_pathname(pathname), ext) } diff --git a/turbopack/crates/turbopack-ecmascript-runtime/js/src/browser/dev/hmr-client/websocket.ts b/turbopack/crates/turbopack-ecmascript-runtime/js/src/browser/dev/hmr-client/websocket.ts index d7da330bb81736..21f7e3c2b6c6a2 100644 --- a/turbopack/crates/turbopack-ecmascript-runtime/js/src/browser/dev/hmr-client/websocket.ts +++ b/turbopack/crates/turbopack-ecmascript-runtime/js/src/browser/dev/hmr-client/websocket.ts @@ -1,4 +1,4 @@ -// Adapted from https://github.com/vercel/next.js/blob/canary/packages/next/client/dev/error-overlay/websocket.ts +// Adapted from https://github.com/vercel/next.js/blob/canary/packages/next/src/client/dev/error-overlay/websocket.ts let source: WebSocket; const eventCallbacks: ((msg: WebSocketMessage) => void)[] = [];