From 308218a12f2efbb226de659ffaa4f5d6c867ca4c Mon Sep 17 00:00:00 2001 From: Alan Chambers Date: Mon, 10 Aug 2020 03:27:08 +0100 Subject: [PATCH] fix(compiler): normalizePath result from fs.realpathSync --- 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) => {