diff options
Diffstat (limited to 'std/node/module.ts')
-rw-r--r-- | std/node/module.ts | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/std/node/module.ts b/std/node/module.ts index f10fc2ca7..a7052668a 100644 --- a/std/node/module.ts +++ b/std/node/module.ts @@ -764,16 +764,7 @@ function tryFile(requestPath: string, _isMain: boolean): string | false { } function toRealPath(requestPath: string): string { - // Deno does not have realpath implemented yet. - let fullPath = requestPath; - while (true) { - try { - fullPath = Deno.readLinkSync(fullPath); - } catch { - break; - } - } - return path.resolve(requestPath); + return Deno.realPathSync(requestPath); } // Given a path, check if the file exists with any of the set extensions |