Improve check error performance by off-loading to worker thread w/ incremental compilation (#575)
This commit is contained in:
10
shared/normalizePath.ts
Normal file
10
shared/normalizePath.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/**
|
||||
* Normalize the path to use forward slashes instead of backslashes.
|
||||
* This is important to prevent weird Git issues, particularly on Windows.
|
||||
* @param path Source path.
|
||||
* @returns Normalized path.
|
||||
*/
|
||||
|
||||
export function normalizePath(path: string): string {
|
||||
return path.replace(/\\/g, "/");
|
||||
}
|
||||
Reference in New Issue
Block a user