File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
packages/metro-service/src Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11import { requireModuleFromMetro } from "@rnx-kit/tools-react-native/metro" ;
22import type { runServer } from "metro" ;
3- import net from "net" ;
3+ import net from "node: net" ;
44import { ensureBabelConfig } from "./babel" ;
55
66type ServerStatus = "not_running" | "already_running" | "in_use" | "unknown" ;
@@ -11,8 +11,9 @@ function getFetchImpl(): (url: string | URL) => Promise<Response> {
1111 }
1212
1313 // TODO: Remove `node-fetch` when we drop support for Node 16
14- // @ts -expect-error To be removed when Node 16 is no longer supported
15- return ( ...args ) => import ( "node-fetch" ) . then ( ( { default : fetch } ) => fetch ( ...args ) ) ;
14+ return ( ...args ) =>
15+ // @ts -expect-error To be removed when Node 16 is no longer supported
16+ import ( "node-fetch" ) . then ( ( { default : fetch } ) => fetch ( ...args ) ) ;
1617}
1718
1819/**
You can’t perform that action at this time.
0 commit comments