From a73d0159508cdde9b3d2b75b60859fc4ee9ae44d Mon Sep 17 00:00:00 2001 From: Windson97 Date: Mon, 22 Apr 2024 11:15:40 +0800 Subject: [PATCH] fix: use replaceAll to replace win32's sep --- src/node/utils/processIncludes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/utils/processIncludes.ts b/src/node/utils/processIncludes.ts index 6ea03d97..5f80aef2 100644 --- a/src/node/utils/processIncludes.ts +++ b/src/node/utils/processIncludes.ts @@ -22,7 +22,7 @@ export function processIncludesRelativePath( .resolve(includeFileDir, p1) .substring(resolvedSrcDir.length) // replace win32's separator to / - const p1PathInVite = p1Path.replace(path.win32.sep, '/') + const p1PathInVite = p1Path.replaceAll(path.win32.sep, '/') return '(' + p1PathInVite + ')' } catch { return m