We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 147495c commit a536654Copy full SHA for a536654
src/compiler/sys/modules/path.ts
@@ -15,6 +15,7 @@ export let resolve: any;
15
export let sep: any;
16
export let delimiter: any;
17
export let posix: any;
18
+export let win32: any;
19
20
export const path: d.PlatformPath = {} as any;
21
@@ -43,6 +44,12 @@ export const setPlatformPath = (platformPath: d.PlatformPath) => {
43
44
sep = path.sep;
45
delimiter = path.delimiter;
46
posix = path.posix;
47
+ if (path.win32) {
48
+ win32 = path.win32;
49
+ } else {
50
+ win32 = { ...posix };
51
+ win32.sep = '\\';
52
+ }
53
};
54
55
setPlatformPath(IS_NODE_ENV ? requireFunc('path') : pathBrowserify);
0 commit comments