We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 099fcd9 commit b3c7116Copy full SHA for b3c7116
src/platform/PlatformTools.ts
@@ -140,10 +140,13 @@ export class PlatformTools {
140
}
141
142
/**
143
- * Normalizes given path. Does "path.normalize".
+ * Normalizes given path. Does "path.normalize" and replaces backslashes with forward slashes.
144
*/
145
static pathNormalize(pathStr: string): string {
146
- return path.normalize(pathStr)
+ let normalizedPath = path.normalize(pathStr)
147
+ if (process.platform === "win32")
148
+ normalizedPath = normalizedPath.replace(/\\/g, "/")
149
+ return normalizedPath
150
151
152
0 commit comments