summaryrefslogtreecommitdiff
path: root/std/path/mod.ts
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2020-05-31 18:48:32 +0100
committerGitHub <noreply@github.com>2020-05-31 13:48:32 -0400
commit10573183af14b4f303909ee9394e0e72cf10b45d (patch)
tree45a2136c24d8cbb7d36218f9d1c10432bef301f8 /std/path/mod.ts
parent464f5bf769f23b85ecc2c99b54b639c5a71d700f (diff)
fix(std/path): Support browsers (#6003)
Diffstat (limited to 'std/path/mod.ts')
-rw-r--r--std/path/mod.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/std/path/mod.ts b/std/path/mod.ts
index 9cb7f1edb..0b4156e69 100644
--- a/std/path/mod.ts
+++ b/std/path/mod.ts
@@ -1,11 +1,11 @@
// Copyright the Browserify authors. MIT License.
// Ported mostly from https://github.com/browserify/path-browserify/
+/** This module is browser compatible. */
+import { isWindows } from "./_constants.ts";
import * as _win32 from "./win32.ts";
import * as _posix from "./posix.ts";
-const isWindows = Deno.build.os == "windows";
-
const path = isWindows ? _win32 : _posix;
export const win32 = _win32;
@@ -29,5 +29,5 @@ export const {
export * from "./common.ts";
export { SEP, SEP_PATTERN } from "./separator.ts";
-export * from "./interface.ts";
+export * from "./_interface.ts";
export * from "./glob.ts";