From df83c8341e4690aee54efaae5e8c527e1b6323b6 Mon Sep 17 00:00:00 2001 From: Alan Chambers Date: Mon, 10 Aug 2020 15:28:25 +0100 Subject: [PATCH] fix(compiler): normalizePath result from fs.realpathSync (#2625) --- src/compiler/sys/modules/fs.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compiler/sys/modules/fs.ts b/src/compiler/sys/modules/fs.ts index 3d6a88ddd51..806d3ab1aaa 100644 --- a/src/compiler/sys/modules/fs.ts +++ b/src/compiler/sys/modules/fs.ts @@ -1,6 +1,7 @@ import type * as d from '../../../declarations'; import { basename } from 'path'; import { promisify } from './util'; +import { normalizePath } from '@utils'; export interface FsObj { __sys: d.CompilerSystem; @@ -111,7 +112,7 @@ export const realpathSync = (fs.realpathSync = (p: string) => { if (results.error) { throw results.error; } - return results.path; + return normalizePath(results.path); }); export const statSync = (fs.statSync = (p: string) => {