File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
turbopack/crates/turbopack-ecmascript-runtime/js/src/browser/dev/hmr-client Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ pub async fn pathname_for_path(
7070 Ok ( Vc :: cell ( path) )
7171}
7272
73- // Adapted from https://github.com/vercel/next.js/blob/canary/packages/next/shared/lib/router/utils/get-asset-path-from-route.ts
73+ // Adapted from https://github.com/vercel/next.js/blob/canary/packages/next/src/ shared/lib/router/utils/get-asset-path-from-route.ts
7474// TODO(alexkirsz) There's no need to create an intermediate string here (and
7575// below), we should instead return an `impl Display`.
7676pub fn get_asset_prefix_from_pathname ( pathname : & str ) -> String {
@@ -83,7 +83,7 @@ pub fn get_asset_prefix_from_pathname(pathname: &str) -> String {
8383 }
8484}
8585
86- // Adapted from https://github.com/vercel/next.js/blob/canary/packages/next/shared/lib/router/utils/get-asset-path-from-route.ts
86+ // Adapted from https://github.com/vercel/next.js/blob/canary/packages/next/src/ shared/lib/router/utils/get-asset-path-from-route.ts
8787pub fn get_asset_path_from_pathname ( pathname : & str , ext : & str ) -> String {
8888 format ! ( "{}{}" , get_asset_prefix_from_pathname( pathname) , ext)
8989}
Original file line number Diff line number Diff line change 1- // Adapted from https://github.com/vercel/next.js/blob/canary/packages/next/client/dev/error-overlay/websocket.ts
1+ // Adapted from https://github.com/vercel/next.js/blob/canary/packages/next/src/ client/dev/error-overlay/websocket.ts
22
33let source : WebSocket ;
44const eventCallbacks : ( ( msg : WebSocketMessage ) => void ) [ ] = [ ] ;
You can’t perform that action at this time.
0 commit comments